From: Junio C Hamano Date: Sat, 09 Aug 2008 18:58:50 GMT Subject: Re: [PATCH] Teach git log --check to return an appropriate error code Message-ID: <7vljz66mmt.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1218265054-19220-1-git-send-email-4ux6as402@sneakemail.com> Peter Valdemar Mørch <4ux6as402@sneakemail.com> writes: > The return value is a bitfield, with |= 1 if HAS_CHANGES > (clearly log has changes "always" - except e.g. "git log > HEAD..HEAD")... Is it clear? "git log HEAD~20..HEAD -- path" where path never changes within the range would be !HAS_CHANGES, wouldn't it? Perhaps "git log --exit-code --raw A..B -- path" should give the same exit status as '! test -z "$(git rev-list A..B -- path)"'?