* [bug] Graph log and orphan branches
@ 2015-12-30 19:46 Carlos Pita
2015-12-30 19:48 ` Carlos Pita
2015-12-30 19:54 ` Junio C Hamano
0 siblings, 2 replies; 6+ messages in thread
From: Carlos Pita @ 2015-12-30 19:46 UTC (permalink / raw)
To: git
Hi all,
the graph output of log show orphan branches in a way that suggests
they have a parent. See for example:
http://stackoverflow.com/questions/22541261/git-log-of-all-branchs-in-only-the-current-tree
I think this is a bug in the UI.
Cheers
--
Carlos
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bug] Graph log and orphan branches
2015-12-30 19:46 [bug] Graph log and orphan branches Carlos Pita
@ 2015-12-30 19:48 ` Carlos Pita
2015-12-30 19:54 ` Junio C Hamano
1 sibling, 0 replies; 6+ messages in thread
From: Carlos Pita @ 2015-12-30 19:48 UTC (permalink / raw)
To: git
> http://stackoverflow.com/questions/22541261/git-log-of-all-branchs-in-only-the-current-tree
>
> I think this is a bug in the UI.
Please notice this happens only for the --oneline output.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bug] Graph log and orphan branches
2015-12-30 19:46 [bug] Graph log and orphan branches Carlos Pita
2015-12-30 19:48 ` Carlos Pita
@ 2015-12-30 19:54 ` Junio C Hamano
2015-12-30 20:43 ` Dennis Kaarsemaker
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2015-12-30 19:54 UTC (permalink / raw)
To: Carlos Pita; +Cc: git
Carlos Pita <carlosjosepita@gmail.com> writes:
> the graph output of log show orphan branches in a way that suggests
> they have a parent.
Reminds me of this ancient RFH topic
http://thread.gmane.org/gmane.comp.version-control.git/236708/focus=239580
which unfortunately got no help...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bug] Graph log and orphan branches
2015-12-30 19:54 ` Junio C Hamano
@ 2015-12-30 20:43 ` Dennis Kaarsemaker
2015-12-30 20:46 ` Carlos Pita
2015-12-30 21:24 ` Junio C Hamano
0 siblings, 2 replies; 6+ messages in thread
From: Dennis Kaarsemaker @ 2015-12-30 20:43 UTC (permalink / raw)
To: Junio C Hamano, Carlos Pita; +Cc: git
On wo, 2015-12-30 at 11:54 -0800, Junio C Hamano wrote:
> Carlos Pita <carlosjosepita@gmail.com> writes:
>
> > the graph output of log show orphan branches in a way that suggests
> > they have a parent.
>
> Reminds me of this ancient RFH topic
>
> http://thread.gmane.org/gmane.comp.version-control.git/236708/focus
> =239580
>
> which unfortunately got no help...
Instead of a blank line, why not something like this to make root
commits stand out a bit?
diff --git a/revision.c b/revision.c
index 0a282f5..e69a992 100644
--- a/revision.c
+++ b/revision.c
@@ -3346,7 +3346,7 @@ char *get_revision_mark(const struct rev_info *revs, const struct commit *commit
else
return ">";
} else if (revs->graph)
- return "*";
+ return commit->parents ? "*" : "^" ;
else if (revs->cherry_mark)
return "+";
return "";
--
Dennis Kaarsemaker
www.kaarsemaker.net
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [bug] Graph log and orphan branches
2015-12-30 20:43 ` Dennis Kaarsemaker
@ 2015-12-30 20:46 ` Carlos Pita
2015-12-30 21:24 ` Junio C Hamano
1 sibling, 0 replies; 6+ messages in thread
From: Carlos Pita @ 2015-12-30 20:46 UTC (permalink / raw)
To: Dennis Kaarsemaker; +Cc: Junio C Hamano, git
> - return "*";
> + return commit->parents ? "*" : "^" ;
I like this idea.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bug] Graph log and orphan branches
2015-12-30 20:43 ` Dennis Kaarsemaker
2015-12-30 20:46 ` Carlos Pita
@ 2015-12-30 21:24 ` Junio C Hamano
1 sibling, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2015-12-30 21:24 UTC (permalink / raw)
To: Dennis Kaarsemaker; +Cc: Carlos Pita, git
Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:
> On wo, 2015-12-30 at 11:54 -0800, Junio C Hamano wrote:
>> Carlos Pita <carlosjosepita@gmail.com> writes:
>>
>> > the graph output of log show orphan branches in a way that suggests
>> > they have a parent.
>>
>> Reminds me of this ancient RFH topic
>>
>> http://thread.gmane.org/gmane.comp.version-control.git/236708/focus
>> =239580
>>
>> which unfortunately got no help...
>
> Instead of a blank line, why not something like this to make root
> commits stand out a bit?
>
That approach will lose information when a root commit is at the
boundary, marked as uninteresting, or on the left/right side of
traversal (when --left-right is requested). As these pieces of
information that will be lost with such an approach are a lot more
relevant than "have we hit the root?", especially in the majority of
repositories where there is only one root commit, I do not think it
is acceptable.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-12-30 21:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-30 19:46 [bug] Graph log and orphan branches Carlos Pita
2015-12-30 19:48 ` Carlos Pita
2015-12-30 19:54 ` Junio C Hamano
2015-12-30 20:43 ` Dennis Kaarsemaker
2015-12-30 20:46 ` Carlos Pita
2015-12-30 21:24 ` 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