From: Junio C Hamano Date: Tue, 22 Jan 2019 20:23:55 GMT Subject: Re: [PATCH] git-submodule.sh: shorten submodule SHA-1s using rev-parse Message-ID: In-Reply-To: Johannes Schindelin 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.