Re: [RFC PATCH 3/5] stash: Use new %g/%G formats instead of sed
- From
Jeff King <peff@peff.net>
- Date
- Oct 14, 2009, 05:00 UTC
- Message-ID
- <20091014050038.GB31810@coredump.intra.peff.net>
- In-Reply-To
- <77e591b80021efc265fea1a101ce6b7124ea832e.1255380039.git.trast@student.ethz.ch>
On Mon, Oct 12, 2009 at 11:06:05PM +0200, Thomas Rast wrote:
Show 5 quoted lines
> list_stash () {
> have_stash || return 0
> - git log --no-color --pretty=oneline -g "$@" $ref_stash -- |
> - sed -n -e 's/^[.0-9a-f]* refs\///p'
> + git log --format="%g: %G" -g "$@" $ref_stashYou dropped the trailing "--" which is needed for disambiguation.
-Peff