git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pseudo initial empty commit and tag for git-log and git-describe?
@ 2006-09-20 13:58 Nguyễn Thái Ngọc Duy
  2006-09-20 14:10 ` Matthias Kestenholz
  2006-09-20 15:12 ` Linus Torvalds
  0 siblings, 2 replies; 4+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2006-09-20 13:58 UTC (permalink / raw)
  To: git

I'm still uncomfortable with git-log -p unable to show the first
commit (git-whatchanged too). Also git-describe refuses to work
without any tag. I'm thinking about adding a pseudo empty commit
together with a tag so that these commands work. The commit and tag
will be created at runtime. They do not actually exist in the object
database. I haven't thought about how to implement it yet.
Any other ideas?
-- 
Duy

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

* Re: pseudo initial empty commit and tag for git-log and git-describe?
  2006-09-20 13:58 pseudo initial empty commit and tag for git-log and git-describe? Nguyễn Thái Ngọc Duy
@ 2006-09-20 14:10 ` Matthias Kestenholz
  2006-09-21  5:23   ` Nguyễn Thái Ngọc Duy
  2006-09-20 15:12 ` Linus Torvalds
  1 sibling, 1 reply; 4+ messages in thread
From: Matthias Kestenholz @ 2006-09-20 14:10 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy; +Cc: git

hello

On Wed, 2006-09-20 at 20:58 +0700, Nguyễn Thái Ngọc Duy wrote:
> I'm still uncomfortable with git-log -p unable to show the first
> commit (git-whatchanged too). Also git-describe refuses to work
> without any tag. I'm thinking about adding a pseudo empty commit
> together with a tag so that these commands work. The commit and tag
> will be created at runtime. They do not actually exist in the object
> database. I haven't thought about how to implement it yet.
> Any other ideas?

you can use git log -p --root  to also display the root commit.

	Matthias

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

* Re: pseudo initial empty commit and tag for git-log and git-describe?
  2006-09-20 13:58 pseudo initial empty commit and tag for git-log and git-describe? Nguyễn Thái Ngọc Duy
  2006-09-20 14:10 ` Matthias Kestenholz
@ 2006-09-20 15:12 ` Linus Torvalds
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2006-09-20 15:12 UTC (permalink / raw)
  To: Nguyá»n Thái Ngá»c Duy; +Cc: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1106 bytes --]



On Wed, 20 Sep 2006, Nguyá»n Thái Ngá»c Duy wrote:
>
> I'm still uncomfortable with git-log -p unable to show the first
> commit (git-whatchanged too).

Both of those work fine with "--root". That option tells git: "I'm 
interested in the root patch too".

It might make sense to have "--root" be the default, but the problem is 
that for projects like the Linux kernel where the first commit is a big 
import, showing it as a patch simply doesn't make sense.

So it would have to be a per-repository decision, depending on whether the 
repo considers the first commit to be an import or not. Maybe a git-config 
option?

> Also git-describe refuses to work without any tag.

Now, that's arguably a real bug. You should be able to describe any 
commit, and if there's no tag that is reachable from it, the "description" 
should probably just be the SHA1 of the commit.

(Side issue: we should probably also accept the output of "git describe" 
as a revision name, since it's a bit silly that you can ask git to 
"describe" a revision, but then git can't actually use the description 
itself ;)

			Linus

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

* Re: pseudo initial empty commit and tag for git-log and git-describe?
  2006-09-20 14:10 ` Matthias Kestenholz
@ 2006-09-21  5:23   ` Nguyễn Thái Ngọc Duy
  0 siblings, 0 replies; 4+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2006-09-21  5:23 UTC (permalink / raw)
  To: Matthias Kestenholz; +Cc: git

On 9/20/06, Matthias Kestenholz <lists@spinlock.ch> wrote:
> hello
> you can use git log -p --root  to also display the root commit.
Thanks. I didn't know about --root.
-- 
Duy

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

end of thread, other threads:[~2006-09-21  5:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 13:58 pseudo initial empty commit and tag for git-log and git-describe? Nguyễn Thái Ngọc Duy
2006-09-20 14:10 ` Matthias Kestenholz
2006-09-21  5:23   ` Nguyễn Thái Ngọc Duy
2006-09-20 15:12 ` Linus Torvalds

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).