[RFC] git rev-contains [Was: merge -s ffonly]
- From
Uwe Kleine-König <ukleinek@strlen.de>
- Date
- Oct 7, 2008, 18:58 UTC
- Message-ID
- <20081007185815.GA10744@strlen.de>
- In-Reply-To
- <20081006235611.GA17662@spearce.org>
Hello,
> + if test -n "$(git rev-list $1..HEAD)"
I already wrote similar tests and I wonder if this couldn't be done in a new builtin command more effectively. Something like
git rev-contains HEAD "$1"
. I expect it to be faster and maybe it prevents a command line overflow?! (I remember something like 32000 chars max in a command, but I could not trigger that with bash.)
Best regards Uwe