git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature Request - Unique commits list
@ 2023-09-28  8:16 Saurabh Sonar
  2023-09-28  8:21 ` Kristoffer Haugsbakk
  2023-09-28 14:07 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Saurabh Sonar @ 2023-09-28  8:16 UTC (permalink / raw)
  To: git

After merging the master branch into my local it is hard to find my
own commits in git history.

To solve this issue I suggest, There should be an option to find out
which commits are only present in only current branch and not present
in any other.

The user should be aware that if he deletes the branch some list of
commits are not merged or present in any other branch and he is going
to lose them forever.

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

* Re: Feature Request - Unique commits list
  2023-09-28  8:16 Feature Request - Unique commits list Saurabh Sonar
@ 2023-09-28  8:21 ` Kristoffer Haugsbakk
  2023-09-28 14:07 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Kristoffer Haugsbakk @ 2023-09-28  8:21 UTC (permalink / raw)
  To: Saurabh Sonar; +Cc: git

On Thu, Sep 28, 2023, at 10:16, Saurabh Sonar wrote:
> The user should be aware that if he deletes the branch some list of
> commits are not merged or present in any other branch and he is going
> to lose them forever.

That already happens now, though? (Well, not “forever” because of GC and
whatnot.) You have to force the deletion with `-D` if the branch is not in
the “upstream” branch.

-- 
Kristoffer Haugsbakk

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

* Re: Feature Request - Unique commits list
  2023-09-28  8:16 Feature Request - Unique commits list Saurabh Sonar
  2023-09-28  8:21 ` Kristoffer Haugsbakk
@ 2023-09-28 14:07 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2023-09-28 14:07 UTC (permalink / raw)
  To: Saurabh Sonar; +Cc: git

Saurabh Sonar <saurabh.sonar120@gmail.com> writes:

> After merging the master branch into my local it is hard to find my
> own commits in git history.

I suspect the above may be the other way around (i.e., after the
upstream takes some but not all of my changes into their 'master'
branch, I want to find out what remaining topics from me are still
not accepted by them), but anyway, doesn't something along the lines
of

	$ git log --branches --not origin/master

work for you?  It asks

 * Please list commits ("git log")

 * The commits to be listed should be discovered by traversing the
   history starting from my branch tips ("--branches")

 * But I am not interested in those commits that can be reached from
   the 'master' branch of my upstream ("--not origin/master").


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

end of thread, other threads:[~2023-09-28 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-28  8:16 Feature Request - Unique commits list Saurabh Sonar
2023-09-28  8:21 ` Kristoffer Haugsbakk
2023-09-28 14:07 ` 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).