Re: rev-parse: -- is sometimes a flag and sometimes an arg?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 21, 2022, 00:36 UTC
- Message-ID
- <xmqq4jy6igb2.fsf@gitster.g>
- In-Reply-To
- <CAO_RewZPXP1EUP90kU6uEQ3_CqqC7yWedjfNd7RaVASFSfrg0Q@mail.gmail.com>
Tim Hockin <thockin@google.com> 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.