git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Weird behavior of git rev-parse
@ 2009-07-14  7:20 Yakup Akbay
  2009-07-14  9:06 ` Santi Béjar
  2009-07-14  9:07 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Yakup Akbay @ 2009-07-14  7:20 UTC (permalink / raw)
  To: git

Hi,

instead of `git rev-list -2 HEAD` I've tried `git rev-parse -2 HEAD` 
just to see the effect of -N in rev-parse, but I've got this output:

    -2
    0294cdd1e2c5535f5b87eff4a1aff3390e03af39

Then I've tried

    $ git rev-parse -'hi, this is a test!'

the output is:

    -hi, this is a test!

Is this an expected behavior?


Another questions is, usage is printed if you omit the commit id in git 
rev-list (E.g. `git rev-list -2`). Is there a reason why HEAD is not 
taken as the default?

Regards,
Yakup

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-14 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14  7:20 Weird behavior of git rev-parse Yakup Akbay
2009-07-14  9:06 ` Santi Béjar
2009-07-14  9:07 ` Junio C Hamano
2009-07-14 10:01   ` Yakup Akbay
2009-07-14 11:34   ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).