Re: [PATCH] Teach git log --check to return an appropriate error code
From: Junio C Hamano <hidden> Date: 2016-06-15 22:45:07
Peter Valdemar Mørch [off-list ref] 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)"'?