Skip to content

Commit

Permalink
rebase -i: respect core.abbrev
Browse files Browse the repository at this point in the history
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 <kirill.shutemov@linux.intel.com>
Acked-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
Kirill A. Shutemov authored and Jonathan Nieder committed Sep 30, 2013
1 parent 9cd755b commit 5689503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-rebase--interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ expand_todo_ids() {
}

collapse_todo_ids() {
transform_todo_ids --short=7
transform_todo_ids --short
}

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

0 comments on commit 5689503

Please sign in to comment.