Re: git-fetch will leave a ref pointing to a tag
- From
Jeff King <peff@peff.net>
- Date
- Jul 3, 2007, 04:18 UTC
- Message-ID
- <20070703041859.GB4007@coredump.intra.peff.net>
- In-Reply-To
- <20070703032315.7279.qmail@science.horizon.com>
On Mon, Jul 02, 2007 at 11:23:15PM -0400, linux@horizon.com wrote:
> And until git-merge-ff is available, what's the recommended way to > "advance master to tag <foo>, but only if that wouldn't lose anything?"
You can ask "do I have anything that foo doesn't?":
test "`git-rev-list foo.. | wc -l`" -gt 0
-Peff