git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: check if a commit is ascendent of a specific commit
Date: Sat, 11 Nov 2006 12:15:13 +0100	[thread overview]
Message-ID: <ej4ba6$oqt$1@sea.gmane.org> (raw)
In-Reply-To: fcaeb9bf0611110308l577d70bfo5046d7d7eb09ac58@mail.gmail.com

Nguyen Thai Ngoc Duy wrote:

> Hi,
> I want to create "git-amend-commit" to be able to amend commits before
> HEAD. So I need to check whether the commit I'm going to amend is
> ascendent of HEAD. Is there any way to check that?

You can only amend topmost commit in any branch. Anything else would
be rewriting history, starting from amended commit upwards in lineage
(parentage).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


  reply	other threads:[~2006-11-11 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-11 11:08 check if a commit is ascendent of a specific commit Nguyen Thai Ngoc Duy
2006-11-11 11:15 ` Jakub Narebski [this message]
     [not found]   ` <fcaeb9bf0611110331q53522c50sda399d4a7916636d@mail.gmail.com>
2006-11-11 11:56     ` Jakub Narebski
2006-11-11 12:12       ` Karl Hasselström
2006-11-11 11:19 ` Nguyen Thai Ngoc Duy
2006-11-11 18:43 ` Junio C Hamano
2006-11-11 19:23   ` Tom Prince
2006-11-11 20:12     ` Junio C Hamano

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='ej4ba6$oqt$1@sea.gmane.org' \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).