Re: Find the starting point of a local branch

2012-12-27 Thread Woody Wu
On Mon, Dec 24, 2012 at 09:24:39AM -0800, Martin von Zweigbergk wrote: On Sun, Dec 23, 2012 at 11:31 PM, Woody Wu narkewo...@gmail.com wrote: On Sun, Dec 23, 2012 at 11:09:58PM -0500, Seth Robertson wrote: In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find

Re: Find the starting point of a local branch

2012-12-27 Thread Martin von Zweigbergk
On Thu, Dec 27, 2012 at 9:15 PM, Woody Wu narkewo...@gmail.com wrote: On Mon, Dec 24, 2012 at 09:24:39AM -0800, Martin von Zweigbergk wrote: On Sun, Dec 23, 2012 at 11:31 PM, Woody Wu narkewo...@gmail.com wrote: This is not working to me since I have more than one local branch that

Re: Find the starting point of a local branch

2012-12-24 Thread Kevin
On Mon, Dec 24, 2012 at 8:31 AM, Woody Wu narkewo...@gmail.com wrote: But thanks anyway, I see you guys's discussions and it's a little hard to understand to me at the moment. Currently, I still have to use gitk with narrowed outputs. Each commit refers to it's parent. If you take a branch,

Re: Find the starting point of a local branch

2012-12-24 Thread Nguyen Thai Ngoc Duy
On Mon, Dec 24, 2012 at 1:19 PM, Jeff King p...@peff.net wrote: On Mon, Dec 24, 2012 at 12:28:45PM +0700, Nguyen Thai Ngoc Duy wrote: You want to know what commit was I at when I typed `git branch mybranch`? The problem is git doesn't record this information and doesn't have the slightest

Re: Find the starting point of a local branch

2012-12-24 Thread Nguyen Thai Ngoc Duy
On Mon, Dec 24, 2012 at 1:27 PM, Junio C Hamano gits...@pobox.com wrote: Nguyen Thai Ngoc Duy pclo...@gmail.com writes: On Mon, Dec 24, 2012 at 12:34 PM, Tomas Carnecky tomas.carne...@gmail.com wrote: Maybe we should store this information. reflog is a perfect place for this, I think. If

Re: Find the starting point of a local branch

2012-12-24 Thread Jeff King
On Mon, Dec 24, 2012 at 06:16:05PM +0700, Nguyen Thai Ngoc Duy wrote: The reason that git does not bother storing where did I start this branch is that it is usually not useful. The right question is usually what is the merge base. There are exceptions, of course (e.g., if you are asking

Re: Find the starting point of a local branch

2012-12-24 Thread Martin von Zweigbergk
On Sun, Dec 23, 2012 at 11:31 PM, Woody Wu narkewo...@gmail.com wrote: On Sun, Dec 23, 2012 at 11:09:58PM -0500, Seth Robertson wrote: In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find out what's the staring reference point (a commit number or tag name) of a

Re: Find the starting point of a local branch

2012-12-24 Thread Junio C Hamano
Nguyen Thai Ngoc Duy pclo...@gmail.com writes: On Mon, Dec 24, 2012 at 1:27 PM, Junio C Hamano gits...@pobox.com wrote: Nguyen Thai Ngoc Duy pclo...@gmail.com writes: On Mon, Dec 24, 2012 at 12:34 PM, Tomas Carnecky tomas.carne...@gmail.com wrote: Maybe we should store this information.

Re: Find the starting point of a local branch

2012-12-24 Thread Nguyen Thai Ngoc Duy
On Tue, Dec 25, 2012 at 2:10 AM, Junio C Hamano gits...@pobox.com wrote: I looked briefly at reflog before writing my previous mail and noticed that when I create a new branch (usually using git checkout -b branch ref) it does not record the base commit. Hmph. Perhaps you are referring to

Find the starting point of a local branch

2012-12-23 Thread Woody Wu
Hi, list How can I find out what's the staring reference point (a commit number or tag name) of a locally created branch? I can use gitk to find out it but this method is slow, I think there might be a command line to do it quickly. Thanks in advance. -- woody I can't go back to yesterday -

Re: Find the starting point of a local branch

2012-12-23 Thread Seth Robertson
In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find out what's the staring reference point (a commit number or tag name) of a locally created branch? I can use gitk to find out it but this method is slow, I think there might be a command line to do it

Re: Find the starting point of a local branch

2012-12-23 Thread Nguyen Thai Ngoc Duy
On Mon, Dec 24, 2012 at 11:09 AM, Seth Robertson in-gitv...@baka.org wrote: In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find out what's the staring reference point (a commit number or tag name) of a locally created branch? I can use gitk to find out it

Re: Find the starting point of a local branch

2012-12-23 Thread Tomas Carnecky
On Mon, 24 Dec 2012 12:28:45 +0700, Nguyen Thai Ngoc Duy pclo...@gmail.com wrote: On Mon, Dec 24, 2012 at 11:09 AM, Seth Robertson in-gitv...@baka.org wrote: In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find out what's the staring reference point (a commit

Re: Find the starting point of a local branch

2012-12-23 Thread Nguyen Thai Ngoc Duy
On Mon, Dec 24, 2012 at 12:34 PM, Tomas Carnecky tomas.carne...@gmail.com wrote: Maybe we should store this information. reflog is a perfect place for this, I think. If this information is reliably available, git rebase can be told to rebase my whole branch instead of my choosing the base

Re: Find the starting point of a local branch

2012-12-23 Thread Jeff King
On Mon, Dec 24, 2012 at 12:28:45PM +0700, Nguyen Thai Ngoc Duy wrote: You want to know what commit was I at when I typed `git branch mybranch`? The problem is git doesn't record this information and doesn't have the slightest clue. Maybe we should store this information. reflog is a

Re: Find the starting point of a local branch

2012-12-23 Thread Junio C Hamano
Nguyen Thai Ngoc Duy pclo...@gmail.com writes: On Mon, Dec 24, 2012 at 12:34 PM, Tomas Carnecky tomas.carne...@gmail.com wrote: Maybe we should store this information. reflog is a perfect place for this, I think. If this information is reliably available, git rebase can be told to rebase my

Re: Find the starting point of a local branch

2012-12-23 Thread Woody Wu
On Sun, Dec 23, 2012 at 11:09:58PM -0500, Seth Robertson wrote: In message 20121224035825.GA17203@zuhnb712, Woody Wu writes: How can I find out what's the staring reference point (a commit number or tag name) of a locally created branch? I can use gitk to find out it but this