public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: merlyn@stonehenge•com (Randal L. Schwartz)
To: jateeq <jawad_atiq@hotmail•com>
Cc: git@vger•kernel.org
Subject: Re: Getting a branch's time of creation
Date: Wed, 17 Mar 2010 09:32:04 -0700	[thread overview]
Message-ID: <86wrxakiyj.fsf@blue.stonehenge.com> (raw)
In-Reply-To: <27933166.post@talk.nabble.com> (jawad_atiq@hotmail.com's message of "Wed, 17 Mar 2010 07:45:07 -0700 (PDT)")

>>>>> "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

  reply	other threads:[~2010-03-17 16:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17 14:45 Getting a branch's time of creation jateeq
2010-03-17 16:32 ` Randal L. Schwartz [this message]
2010-03-17 17:24   ` jateeq
2010-03-19 20:54 ` Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wrxakiyj.fsf@blue.stonehenge.com \
    --to=merlyn@stonehenge$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=jawad_atiq@hotmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox