git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What should I use instead of git show?
@ 2006-03-13 14:47 Olivier Galibert
  2006-03-13 16:17 ` Radoslaw Szkodzinski
  2006-03-14  3:09 ` Junio C Hamano
  0 siblings, 2 replies; 11+ messages in thread
From: Olivier Galibert @ 2006-03-13 14:47 UTC (permalink / raw)
  To: git

Since it seems to be gone.

Up until now, when I wanted to send a patch to someone with the
associated changelog, I just did a git log to find the changelog sha1
then a git show to get the goods.  How am I supposed to do that now?

  OG.

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

* Re: What should I use instead of git show?
  2006-03-13 14:47 What should I use instead of git show? Olivier Galibert
@ 2006-03-13 16:17 ` Radoslaw Szkodzinski
  2006-03-13 16:33   ` Linus Torvalds
  2006-03-13 16:50   ` Olivier Galibert
  2006-03-14  3:09 ` Junio C Hamano
  1 sibling, 2 replies; 11+ messages in thread
From: Radoslaw Szkodzinski @ 2006-03-13 16:17 UTC (permalink / raw)
  To: git; +Cc: Olivier Galibert

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

On Monday 13 March 2006 15:47, Olivier Galibert wrote yet:
> Since it seems to be gone.
>
> Up until now, when I wanted to send a patch to someone with the
> associated changelog, I just did a git log to find the changelog sha1
> then a git show to get the goods.  How am I supposed to do that now?
>
>   OG.

Why not use git-whatchanged? It's exacly meant to do this.
Or try qgit, or even gitk (which is what git show did).

--
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

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

* Re: What should I use instead of git show?
  2006-03-13 16:17 ` Radoslaw Szkodzinski
@ 2006-03-13 16:33   ` Linus Torvalds
  2006-03-13 16:58     ` Olivier Galibert
  2006-03-13 23:26     ` Mark Hollomon
  2006-03-13 16:50   ` Olivier Galibert
  1 sibling, 2 replies; 11+ messages in thread
From: Linus Torvalds @ 2006-03-13 16:33 UTC (permalink / raw)
  To: Radoslaw Szkodzinski; +Cc: git, Olivier Galibert



On Mon, 13 Mar 2006, Radoslaw Szkodzinski wrote:
> On Monday 13 March 2006 15:47, Olivier Galibert wrote yet:
> > Since it seems to be gone.
> >
> > Up until now, when I wanted to send a patch to someone with the
> > associated changelog, I just did a git log to find the changelog sha1
> > then a git show to get the goods.  How am I supposed to do that now?
> >
> >   OG.
> 
> Why not use git-whatchanged? It's exacly meant to do this.
> Or try qgit, or even gitk (which is what git show did).

Why not just use "git show"?

It hasn't gone anywhere that I know of. It's still there.

Are you stuck with an older version of git that doesn't have it? If so, 
you can indeed do

	git whatchanged -p -1 <sha1>

instead (actually, if your git is really old, you shouldn't use the modern 
shorthand of "-1", you should use the longer "--max-count=1" instead).

		Linus

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

* Re: What should I use instead of git show?
  2006-03-13 16:17 ` Radoslaw Szkodzinski
  2006-03-13 16:33   ` Linus Torvalds
@ 2006-03-13 16:50   ` Olivier Galibert
  2006-03-20 11:33     ` Paul Mackerras
  1 sibling, 1 reply; 11+ messages in thread
From: Olivier Galibert @ 2006-03-13 16:50 UTC (permalink / raw)
  To: Radoslaw Szkodzinski; +Cc: git

On Mon, Mar 13, 2006 at 05:17:47PM +0100, Radoslaw Szkodzinski wrote:
> On Monday 13 March 2006 15:47, Olivier Galibert wrote yet:
> > Since it seems to be gone.
> >
> > Up until now, when I wanted to send a patch to someone with the
> > associated changelog, I just did a git log to find the changelog sha1
> > then a git show to get the goods.  How am I supposed to do that now?
> 
> Why not use git-whatchanged? It's exacly meant to do this.

Indeed, git-whatchanged -p origin..HEAD worked.  Thanks.


> Or try qgit, or even gitk (which is what git show did).

gitk does not seem to have an export function.  Dunno about qgit.

  OG.

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

* Re: What should I use instead of git show?
  2006-03-13 16:33   ` Linus Torvalds
@ 2006-03-13 16:58     ` Olivier Galibert
  2006-03-13 23:26     ` Mark Hollomon
  1 sibling, 0 replies; 11+ messages in thread
From: Olivier Galibert @ 2006-03-13 16:58 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Radoslaw Szkodzinski, git

On Mon, Mar 13, 2006 at 08:33:22AM -0800, Linus Torvalds wrote:
> Why not just use "git show"?
> 
> It hasn't gone anywhere that I know of. It's still there.

Oh beautiful.

I had an old (as in 3 months max, but heh) git-tree at work in a
corner from which I had compiled git.  When I saw it didn't have git
show which I have at home I did a git pull, recompile, reinstall.

The new git didn't have git show, so I thought it had been removed
after all.  Turns out, the git pull had broken halfway due to the old
version of git.  It hadn't fast forwarded _all_ the versions.  But the
new git, while not current, has been able to do the complete git pull
this time.  And now I have git show at work too.

Guess you have to update git every month or so if you want to be able
to follow current trees.

  OG.

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

* Re: What should I use instead of git show?
  2006-03-13 16:33   ` Linus Torvalds
  2006-03-13 16:58     ` Olivier Galibert
@ 2006-03-13 23:26     ` Mark Hollomon
  2006-03-13 23:55       ` Junio C Hamano
  1 sibling, 1 reply; 11+ messages in thread
From: Mark Hollomon @ 2006-03-13 23:26 UTC (permalink / raw)
  To: git

Linus Torvalds wrote:
> 
> 
> 	git whatchanged -p -1 <sha1>
> 
> instead (actually, if your git is really old, you shouldn't use the modern 
> shorthand of "-1", you should use the longer "--max-count=1" instead).

I must be misunderstanding this:

	git whatchanged -p -1 HEAD

in the current git tree results in nothing. only when I get to -5 does it show something.

Is this expected?

 > git version
git version 1.2.4.gea75

-- 
Mark Hollomon

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

* Re: What should I use instead of git show?
  2006-03-13 23:26     ` Mark Hollomon
@ 2006-03-13 23:55       ` Junio C Hamano
  2006-03-14 11:49         ` Mark Hollomon
  0 siblings, 1 reply; 11+ messages in thread
From: Junio C Hamano @ 2006-03-13 23:55 UTC (permalink / raw)
  To: Mark Hollomon; +Cc: git

Mark Hollomon <markhollomon@comcast.net> writes:

> I must be misunderstanding this:
>
> 	git whatchanged -p -1 HEAD
>
> in the current git tree results in nothing. only when I get to -5 does it show something.
>
> Is this expected?
>
>> git version
> git version 1.2.4.gea75

In this case what matterks is not the version of your git but
what that HEAD is.  If it is a merge commit, whatchanged -p does
not show anything by default.

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

* Re: What should I use instead of git show?
  2006-03-13 14:47 What should I use instead of git show? Olivier Galibert
  2006-03-13 16:17 ` Radoslaw Szkodzinski
@ 2006-03-14  3:09 ` Junio C Hamano
  1 sibling, 0 replies; 11+ messages in thread
From: Junio C Hamano @ 2006-03-14  3:09 UTC (permalink / raw)
  To: Olivier Galibert; +Cc: git

Olivier Galibert <galibert@pobox.com> writes:

> Up until now, when I wanted to send a patch to someone with the
> associated changelog, I just did a git log to find the changelog sha1
> then a git show to get the goods.  How am I supposed to do that now?

"git show" is fine and it is still there, but there is a command
designed specifically for that purpose: format-patch.

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

* Re: What should I use instead of git show?
  2006-03-13 23:55       ` Junio C Hamano
@ 2006-03-14 11:49         ` Mark Hollomon
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Hollomon @ 2006-03-14 11:49 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano wrote:
> Mark Hollomon <markhollomon@comcast.net> writes:
> 
>> I must be misunderstanding this:
>>
>> 	git whatchanged -p -1 HEAD
>>
>> in the current git tree results in nothing. only when I get to -5 does it show something.
>>
>> Is this expected?
>>
>>> git version
>> git version 1.2.4.gea75
> 
> In this case what matterks is not the version of your git but
> what that HEAD is.  If it is a merge commit, whatchanged -p does
> not show anything by default.

Oh, I see. As a pass through to git-rev-list that makes sense. --max-count is really 
-max-commits-to-consider (or something like that).

Is there a --max-commits-to-show?

-- 
Mark Hollomon

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

* Re: What should I use instead of git show?
  2006-03-13 16:50   ` Olivier Galibert
@ 2006-03-20 11:33     ` Paul Mackerras
  2006-03-20 13:16       ` Olivier Galibert
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Mackerras @ 2006-03-20 11:33 UTC (permalink / raw)
  To: Olivier Galibert; +Cc: Radoslaw Szkodzinski, git

Olivier Galibert writes:

> gitk does not seem to have an export function.  Dunno about qgit.

Right-click on a commit should bring up a context menu which includes
a "write commit to file" option.  Or did you mean something different
by "export"?

Paul.

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

* Re: What should I use instead of git show?
  2006-03-20 11:33     ` Paul Mackerras
@ 2006-03-20 13:16       ` Olivier Galibert
  0 siblings, 0 replies; 11+ messages in thread
From: Olivier Galibert @ 2006-03-20 13:16 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Radoslaw Szkodzinski, git

On Mon, Mar 20, 2006 at 10:33:31PM +1100, Paul Mackerras wrote:
> Olivier Galibert writes:
> 
> > gitk does not seem to have an export function.  Dunno about qgit.
> 
> Right-click on a commit should bring up a context menu which includes
> a "write commit to file" option.  Or did you mean something different
> by "export"?

No, I meant exactly that.  Thanks, that can be quite useful.

  OG.

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

end of thread, other threads:[~2006-03-20 13:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-13 14:47 What should I use instead of git show? Olivier Galibert
2006-03-13 16:17 ` Radoslaw Szkodzinski
2006-03-13 16:33   ` Linus Torvalds
2006-03-13 16:58     ` Olivier Galibert
2006-03-13 23:26     ` Mark Hollomon
2006-03-13 23:55       ` Junio C Hamano
2006-03-14 11:49         ` Mark Hollomon
2006-03-13 16:50   ` Olivier Galibert
2006-03-20 11:33     ` Paul Mackerras
2006-03-20 13:16       ` Olivier Galibert
2006-03-14  3:09 ` Junio C Hamano

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