Re: v2.10.0: ls-tree exit status is always 0, this differs from ls(1)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 21, 2016, 16:52 UTC
- Message-ID
- <xmqqr38d9ova.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160921132655.h49HMsHbp%steffen@sdaoden.eu>
Steffen Nurpmeso <steffen@sdaoden.eu> writes:
> I think this behaviour contradicts the manual which strongly links > ls-tree to ls(1):
Patches to the documentation is very much welcomed.
Somewhere the similarity must end, and actually it ends a lot earlier, as "/bin/ls" takes exact paths while "ls-tree" (or any other Git command for that matter) takes a pathspec pattern, and not having a path that matches the pathspec pattern is not an error condition.
Thanks.