From: Junio C Hamano Date: Sun, 21 Aug 2022 00:36:01 GMT Subject: Re: rev-parse: -- is sometimes a flag and sometimes an arg? Message-ID: In-Reply-To: Tim Hockin writes: > Thanks. Is there a more friendly way to do what I'm trying to > express? Should I just use `rev-list -n1` instead? That's hard to answer, as you didn't exactly say what you are trying to express. All you asked was: why is "--" treated as an arg.