Re: [PATCH v3 4/9] rebase -i: also expand/collapse the SHA-1s via the rebase--helper
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 27, 2017, 06:47 UTC
- Message-ID
- <xmqqfugumjnp.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <xmqqr30eo36n.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 21 quoted lines
> Johannes Schindelin <johannes.schindelin@gmx.de> writes:
>
>> diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
>> index 214af0372ba..52a19e0bdb3 100644
>> --- a/git-rebase--interactive.sh
>> +++ b/git-rebase--interactive.sh
>> @@ -774,11 +774,11 @@ transform_todo_ids () {
>> }
>>
>> expand_todo_ids() {
>> - transform_todo_ids
>> + git rebase--helper --expand-sha1s
>> }
>>
>> collapse_todo_ids() {
>> - transform_todo_ids --short
>> + git rebase--helper --shorten-sha1s
>> }
>
> Obviously correct ;-) But doesn't this make transform_todo_ids ()
> helper unused and removable?Ehh, in case it was notclear, I meant the helper function in shell, not the one you added below to C code.
>
>> +int transform_todo_ids(int shorten_sha1s)
>> +{