git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git Log and History Simplification
@ 2012-12-17 11:33 Dinesh Subramani
  2012-12-17 11:49 ` Nguyen Thai Ngoc Duy
  2012-12-17 12:34 ` Tomas Carnecky
  0 siblings, 2 replies; 4+ messages in thread
From: Dinesh Subramani @ 2012-12-17 11:33 UTC (permalink / raw)
  To: git

I am using the below command :

git log --stat --decorate=full --since=<date>

Can you please let me know if the above command will list all the
commits and would not skip any of the commits due to History
Simplification. Any help would be very useful.

Regards,
Dinesh

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

* Re: Git Log and History Simplification
  2012-12-17 11:33 Git Log and History Simplification Dinesh Subramani
@ 2012-12-17 11:49 ` Nguyen Thai Ngoc Duy
  2012-12-17 19:53   ` Junio C Hamano
  2012-12-17 12:34 ` Tomas Carnecky
  1 sibling, 1 reply; 4+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-12-17 11:49 UTC (permalink / raw)
  To: Dinesh Subramani; +Cc: git

On Mon, Dec 17, 2012 at 6:33 PM, Dinesh Subramani
<dinesh.subramani@gmail.com> wrote:
> I am using the below command :
>
> git log --stat --decorate=full --since=<date>
>
> Can you please let me know if the above command will list all the
> commits and would not skip any of the commits due to History
> Simplification. Any help would be very useful.

If my memory is still functioning, history simplification only takes
place when you specify pathspec. The above command does not have
pathspec, so no history simplification.
-- 
Duy

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

* Re: Git Log and History Simplification
  2012-12-17 11:33 Git Log and History Simplification Dinesh Subramani
  2012-12-17 11:49 ` Nguyen Thai Ngoc Duy
@ 2012-12-17 12:34 ` Tomas Carnecky
  1 sibling, 0 replies; 4+ messages in thread
From: Tomas Carnecky @ 2012-12-17 12:34 UTC (permalink / raw)
  To: Dinesh Subramani, git

On Mon, 17 Dec 2012 17:03:09 +0530, Dinesh Subramani <dinesh.subramani@gmail.com> wrote:
> I am using the below command :
> 
> git log --stat --decorate=full --since=<date>
> 
> Can you please let me know if the above command will list all the
> commits and would not skip any of the commits due to History
> Simplification. Any help would be very useful.

The way I understand the man page, to disable history simplification you have
to use --full-history --sparse.

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

* Re: Git Log and History Simplification
  2012-12-17 11:49 ` Nguyen Thai Ngoc Duy
@ 2012-12-17 19:53   ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2012-12-17 19:53 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: Dinesh Subramani, git

Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:

> On Mon, Dec 17, 2012 at 6:33 PM, Dinesh Subramani
> <dinesh.subramani@gmail.com> wrote:
>> I am using the below command :
>>
>> git log --stat --decorate=full --since=<date>
>>
>> Can you please let me know if the above command will list all the
>> commits and would not skip any of the commits due to History
>> Simplification. Any help would be very useful.
>
> If my memory is still functioning, history simplification only takes
> place when you specify pathspec. The above command does not have
> pathspec, so no history simplification.

Think of the pathspec limiting as asking to choose commits by one
criteria (i.e. touches paths in a way that matters in the result),
like any other commit limiting criteria like "--grep" (i.e. asks to
choose commits that has the given string in its message).

With something like --author or --grep, we would need to look at
each individual commmit to decide if it matches the criteria.  With
pathspec, when we look at a single-parent commit, we inspect it to
decide if it matches the criteria of touching the specified paths.

When we are looking at a merge commit, however, if one of the
parents match the result at all the paths that match the given
pathspec, we know any and all commits on the other side branches do
not matter in the result, hence we can omit them by not even having
to follow that parent ancestry.

If you mention --full-history in your answer, it will be perfect ;-)

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

end of thread, other threads:[~2012-12-17 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 11:33 Git Log and History Simplification Dinesh Subramani
2012-12-17 11:49 ` Nguyen Thai Ngoc Duy
2012-12-17 19:53   ` Junio C Hamano
2012-12-17 12:34 ` Tomas Carnecky

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).