Re: [PATCH] git-submodule.sh: shorten submodule SHA-1s using rev-parse
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 22, 2019, 20:23 UTC
- Message-ID
- <xmqqbm48fnl0.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <nycvar.QRO.7.76.6.1901221623370.41@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> + sha1_abbr_src=$(GIT_DIR="$name/.git" git rev-parse --short $sha1_src) > > How about `git -C "$name" rev-parse --short`? That would less likely run > over 80 columns/line, either.
That would be a separate patch, either as a preliminary or a follow-up. The existing code has too many of the same construct.