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

Re: [PATCH 2/2 v2] git-gui - provide commit base to the hooks/pre-commit script

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Jun 19, 2010, 02:59 UTC
Message-ID
<4C1C3288.5000308@gmail.com>
In-Reply-To
<1275965763-18940-2-git-send-email-mlevedahl@gmail.com>
On 06/07/2010 10:56 PM, Mark Levedahl wrote:
Show 9 quoted lines
> If hooks/pre-commit acts based upon the changes to be checked in
> rather than just the resulting content, the script needs to know which
> commit to use. For a normal commit, this is HEAD, but when amending this
> is HEAD~1. So, this modifies commit.tcl to pass $1 as HEAD|HEAD~1 depending
> upon the commit type. Existing scripts are unaffected as they did not
> expect any argument so will silently ignore this extra bit of info.
>
> Signed-off-by: Mark Levedahl<mlevedahl@gmail.com>
>    

Given the discussion on the first series (starting with)<1275759590-16342-1-git-send-email-mlevedahl@gmail.com>, and the absence of objection to v2, I presume this sequence is ok?

Mark
Previous: Mark LevedahlNext: Junio C Hamano
Message 3 of 6 in “commit.c - provide base commit to the hooks/pre-commit script”
  1. 1/2 commit.c - provide base commit to the hooks/pre-commit scriptMark Levedahl, Jun 8, 2010
  2. 2/2 git-gui - provide commit base to the hooks/pre-commit scriptMark Levedahl, Jun 8, 2010
  3. Mark LevedahlJun 19, 2010
  4. Junio C HamanoJun 21, 2010
  5. Jeff KingJun 21, 2010
  6. Mark LevedahlJun 22, 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.