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

Re: Getting a branch's time of creation

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Mar 17, 2010, 16:32 UTC
Message-ID
<86wrxakiyj.fsf@blue.stonehenge.com>
In-Reply-To
<27933166.post@talk.nabble.com>
>>>>> "jateeq" == jateeq  <jawad_atiq@hotmail.com> writes:

jateeq> I am trying to find the time at which a remote branch was created, so jateeq> that I can use the '--since' option in git log to limit the commits to jateeq> only ones that were created for that branch (read below to see why I jateeq> can't use 'git log <branchnname>). So my question: does git remember jateeq> the time at which a branch was created, and how can it be listed?

You're probably looking for the commit at the common ancestor of a given branch (which is a point, not a line, remember) and a branch you're interested in, like maybe "master".

consider something like:
git log $(git merge-base origin/somebranch origin/master)..origin/master
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Previous: jateeqNext: jateeq
Message 2 of 4 in “Getting a branch's time of creation”
  1. jateeqMar 17, 2010
  2. Randal L. SchwartzMar 17, 2010
  3. jateeqMar 17, 2010
  4. Jakub NarebskiMar 19, 2010

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.