Junio C Hamano <gitster@xxxxxxxxx> writes: > It could be something as simple like this (not tested). > > git-rebase--interactive.sh | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh > index f953d8d..6766b44 100644 > --- a/git-rebase--interactive.sh > +++ b/git-rebase--interactive.sh > @@ -678,6 +678,23 @@ skip_unnecessary_picks () { > die "Could not skip unnecessary pick commands" > } > > +# expand shortened commit object name to the full form > +expand_todo_commit_names () { > + while read -r command rest > + do > + case "$command" in > + '#'*) > + ;; > + *) > + sha1=$(git rev-parse --verify --quiet ${rest%% *}) > + rest="$sha1 ${rest#* }" > + ;; In case somebody wants to polish it to a real patch, this part should at least be: case "$command" in '#'* | exec) # Be careful for oddball commands like 'exec' # that do not have a short-SHA-1 at the beginning # of $rest. ;; *) sha1=$(git rev-parse --verify --quiet ${rest%% *}) && rest="$sha1 ${rest#* }" ;; -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html