From: Yakup Akbay <yakbay@ubicom.com>
To: git@vger.kernel.org
Subject: Weird behavior of git rev-parse
Date: Tue, 14 Jul 2009 10:20:47 +0300 [thread overview]
Message-ID: <4A5C31CF.2090204@ubicom.com> (raw)
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
next reply other threads:[~2009-07-14 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 7:20 Yakup Akbay [this message]
2009-07-14 9:06 ` Weird behavior of git rev-parse 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A5C31CF.2090204@ubicom.com \
--to=yakbay@ubicom.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.