Skip to content

Commit 5689503

Browse files
kiryljrn
authored andcommitted
rebase -i: respect core.abbrev
collapse_todo_ids() uses `git rev-parse --short=7' to abbreviate commit ids before showing them to the user in a text editor. Let's drop argument from --short to the configured value instead (still defaulting to 7). Signed-off-by: Kirill A. Shutemov <[email protected]> Acked-by: Eric Sunshine <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]>
1 parent 9cd755b commit 5689503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-rebase--interactive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ expand_todo_ids() {
713713
}
714714

715715
collapse_todo_ids() {
716-
transform_todo_ids --short=7
716+
transform_todo_ids --short
717717
}
718718

719719
# Rearrange the todo list that has both "pick sha1 msg" and

0 commit comments

Comments
 (0)