git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How do I see all of my changes on a branch?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 13, 2009, 20:23 UTC
Message-ID
<20091013202300.GC9261@spearce.org>
In-Reply-To
<25879435.post@talk.nabble.com>
jonhud <jon@huddler-inc.com> wrote:
Show 5 quoted lines
> We are using github (but that's more or less irrelevant, since I'm just
> running git 1.6 locally on Ubuntu). Some time ago, I created a new branch
> (release.2.2) and pushed it out to the remote repository. All the digging
> through log, gitk, etc. has not made it possible for me to figure out the
> commit (or point in time) at which I cut the branch. 
git merge-base release2.2 HEAD
Which really lets you do:
  git diff $(git merge-base release.2.2 HEAD) HEAD
Which is the long form of:
  git diff release-2.2...HEAD
(diff triple dot operator does the merge base computation for you).
 
-- 
Shawn.
Previous: jonhudNext: Tim Mazid
Message 2 of 3 in “How do I see all of my changes on a branch?”
  1. jonhudOct 13, 2009
  2. Shawn O. PearceOct 13, 2009
  3. Tim MazidOct 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.