Skip to content

Commit 14e6c3a

Browse files
committed
Remove non-fancy reflog msg alternatives
1 parent ca1c099 commit 14e6c3a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ fn run_with_repo(logger: &slog::Logger, config: &Config, repo: &git2::Repository
280280
None
281281
};
282282
if branch_name != None && !config.dry_run {
283-
// To detach head with libgit2 default reflog message:
284-
// repo.set_head_detached(head_commit.id())?;
285-
// But since we want a fancy custom one:
286283
repo.reference(
287284
"HEAD",
288285
head_commit.id(),
@@ -445,9 +442,6 @@ fn run_with_repo(logger: &slog::Logger, config: &Config, repo: &git2::Repository
445442
final_commit.id(),
446443
"absorb (finish): updating branch ref to final result",
447444
)?;
448-
// To reattach head with libgit2 default reflog message:
449-
// repo.set_head(&branch_name)?;
450-
// But since we want a fancy custom one:
451445
repo.reference_symbolic(
452446
"HEAD",
453447
&branch_name,

0 commit comments

Comments
 (0)