git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git log --graph
@ 2009-10-11 18:27 Dilip M
  2009-10-11 18:35 ` Sverre Rabbelier
  2009-10-12  5:08 ` B Smith-Mannschott
  0 siblings, 2 replies; 7+ messages in thread
From: Dilip M @ 2009-10-11 18:27 UTC (permalink / raw)
  To: git

I am using: git version 1.6.3.2

Somehow not getting text graph as mentioned in
http://www.gitready.com/intermediate/2009/01/26/text-based-graph.html

Any hints would really help..

I am trying git log --graph. (has commits in two branches...). But
always see one line :(




-- 
Dilip

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

* Re: git log --graph
  2009-10-11 18:27 git log --graph Dilip M
@ 2009-10-11 18:35 ` Sverre Rabbelier
  2009-10-11 19:40   ` Matthieu Moy
  2009-10-12  3:01   ` Dilip M
  2009-10-12  5:08 ` B Smith-Mannschott
  1 sibling, 2 replies; 7+ messages in thread
From: Sverre Rabbelier @ 2009-10-11 18:35 UTC (permalink / raw)
  To: Dilip M; +Cc: git

Heya,

On Sun, Oct 11, 2009 at 20:27, Dilip M <dilipm79@gmail.com> wrote:
> I am trying git log --graph. (has commits in two branches...). But
> always see one line :(

It'll show you the history of one branch at a time online, you won't
get the demo-ed multiple lines unless the branch you're looking at
contains merges.


-- 
Cheers,

Sverre Rabbelier

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

* Re: git log --graph
  2009-10-11 18:35 ` Sverre Rabbelier
@ 2009-10-11 19:40   ` Matthieu Moy
  2009-10-11 20:30     ` Jakub Narebski
  2009-10-12  3:01   ` Dilip M
  1 sibling, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2009-10-11 19:40 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: Dilip M, git

Sverre Rabbelier <srabbelier@gmail.com> writes:

> Heya,
>
> On Sun, Oct 11, 2009 at 20:27, Dilip M <dilipm79@gmail.com> wrote:
>> I am trying git log --graph. (has commits in two branches...). But
>> always see one line :(
>
> It'll show you the history of one branch at a time online, you won't
> get the demo-ed multiple lines unless the branch you're looking at
> contains merges.

That said, git log --graph --all will show multiple branches.

I personnally like the format of
git log --graph --pretty=oneline --abbrev-commit
with ui.color set to true in ~/.gitconfig.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

* Re: git log --graph
  2009-10-11 19:40   ` Matthieu Moy
@ 2009-10-11 20:30     ` Jakub Narebski
  0 siblings, 0 replies; 7+ messages in thread
From: Jakub Narebski @ 2009-10-11 20:30 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: Sverre Rabbelier, Dilip M, git

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> I personnally like the format of
> 
>  $ git log --graph --pretty=oneline --abbrev-commit
>
> with ui.color set to true in ~/.gitconfig.

You can use

  $ git log --graph --oneline

nowadays for that.  A bit shorter.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

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

* Re: git log --graph
  2009-10-11 18:35 ` Sverre Rabbelier
  2009-10-11 19:40   ` Matthieu Moy
@ 2009-10-12  3:01   ` Dilip M
  2009-10-12  6:54     ` Matthieu Moy
  1 sibling, 1 reply; 7+ messages in thread
From: Dilip M @ 2009-10-12  3:01 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: git

On Mon, Oct 12, 2009 at 12:05 AM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
> Heya,
>
> On Sun, Oct 11, 2009 at 20:27, Dilip M <dilipm79@gmail.com> wrote:
>> I am trying git log --graph. (has commits in two branches...). But
>> always see one line :(
>
> It'll show you the history of one branch at a time online, you won't
> get the demo-ed multiple lines unless the branch you're looking at
> contains merges.

Understood. it shows only when I have merged conflicts!

In case, it is a fast forward merge. It doesn't show. Which is good :)

Thanks to all.


-
Dilip

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

* Re: git log --graph
  2009-10-11 18:27 git log --graph Dilip M
  2009-10-11 18:35 ` Sverre Rabbelier
@ 2009-10-12  5:08 ` B Smith-Mannschott
  1 sibling, 0 replies; 7+ messages in thread
From: B Smith-Mannschott @ 2009-10-12  5:08 UTC (permalink / raw)
  To: Dilip M; +Cc: git

On Sun, Oct 11, 2009 at 20:27, Dilip M <dilipm79@gmail.com> wrote:
> I am using: git version 1.6.3.2
>
> Somehow not getting text graph as mentioned in
> http://www.gitready.com/intermediate/2009/01/26/text-based-graph.html
>
> Any hints would really help..
>
> I am trying git log --graph. (has commits in two branches...). But
> always see one line :(

"one line"?
1 of history? (i.e. the history of the current branch, but not the other)
2 of text?
3 --pretty=oneline?

assuming your problem is 1:

git log --all --graph

//ben

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

* Re: git log --graph
  2009-10-12  3:01   ` Dilip M
@ 2009-10-12  6:54     ` Matthieu Moy
  0 siblings, 0 replies; 7+ messages in thread
From: Matthieu Moy @ 2009-10-12  6:54 UTC (permalink / raw)
  To: Dilip M; +Cc: Sverre Rabbelier, git

Dilip M <dilipm79@gmail.com> writes:

> Understood. it shows only when I have merged conflicts!
>
> In case, it is a fast forward merge. It doesn't show. Which is good :)

Fast-forward and merge conflicts are two different things. Non-fast
forward occurs when you merge two branches which are not a direct
ancestor of each other, i.e. both have commits that the other do not
have.

In case of non-fast forward, if you didn't touch the same file in both
branches, the merge is still trivial and conflict-free. If you touched
the same files, then Git has to apply in-file merge strategy, but that
doesn't mean you'll get conflicts either. Conflicts will occur when
you touched the same part of the same file.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

end of thread, other threads:[~2009-10-12  7:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-11 18:27 git log --graph Dilip M
2009-10-11 18:35 ` Sverre Rabbelier
2009-10-11 19:40   ` Matthieu Moy
2009-10-11 20:30     ` Jakub Narebski
2009-10-12  3:01   ` Dilip M
2009-10-12  6:54     ` Matthieu Moy
2009-10-12  5:08 ` B Smith-Mannschott

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