Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: > Hi, > > On Sat, 24 Jun 2006, Eric Wong wrote: > > > + if test -n "`git-diff-index HEAD`" > > This is not a sufficient test if the patch was already merged to upstream. > For example, you can have two patches which touched the same file, and one > of them was applied to upstream, the other not. The test fails to see > that. Or am I missing something? This is just to tell if there's anything worth committing after a merge is complete. If not, then it assumes it's been a) merged upstream or b) empty in the first place (very unlikely). -- Eric Wong - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html