History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit b5217481 parent d79a7a61 file · +4 −6Browse files

Unified · Split

git-repository/src/remote/connection/fetch/update_refs/mod.rs+4−6
@@ -74,13 +74,11 @@ pub(crate) fn update( · 73 unmodified lines
74 (update::Mode::NoChangeNeeded, "TBD no change")74 (update::Mode::NoChangeNeeded, "TBD no change")
75 } else if refspecs[*spec_index].allow_non_fast_forward() {75 } else if refspecs[*spec_index].allow_non_fast_forward() {
76 (update::Mode::Forced, "TBD force")76 (update::Mode::Forced, "TBD force")
77 } else if let Some(git_ref::Category::Tag) = existing.name().category() {
78 updates.push(update::Mode::RejectedTagUpdate.into());
79 continue;
77 } else {80 } else {
78 if let Some(git_ref::Category::Tag) = existing.name().category() {81 todo!("check for fast-forward (is local an ancestor of remote?)")
79 updates.push(update::Mode::RejectedTagUpdate.into());
80 continue;
81 } else {
82 todo!("check for fast-forward (is local an ancestor of remote?)")
83 }
84 };82 };
85 (mode, reflog_message, existing.name().to_owned())83 (mode, reflog_message, existing.name().to_owned())
86 }84 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t