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

Re: [GIT-GUI PATCH] call prepare-commit-msg hook

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 24, 2008, 17:04 UTC
Message-ID
<20080924170434.GW3669@spearce.org>
In-Reply-To
<48D02D99.9090102@qlogic.com>
Joshua Williams <joshua.williams@qlogic.com> wrote:
Show 5 quoted lines
> Small change.  Still need to load MERGE_MSG and SQUASH_MSG
> if there's no prepare-commit-msg hook.  We now process the hook
> first and if it's not there, load MERGE_MSG or SQUASH_MSG.
>
> Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>

This patch looks reasonable. My only comment is maybe we want to delete PREPARE_COMMIT_MSG file when we "exit 1" when the hook has declined.

> diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
> index 10d8a44..8d06cd1 100755
> --- a/git-gui/git-gui.sh
> +++ b/git-gui/git-gui.sh

Can you please try to put this onto my current git-gui tree? I don't have the base 10d8a44 object so I can't 3-way merge this in, and the patch doesn't apply cleanly anymore.

-- 
Shawn.
Previous: Joshua WilliamsNext: Joshua Williams
Message 3 of 5 in “call prepare-commit-msg hook”
  1. call prepare-commit-msg hookJoshua Williams, Sep 16, 2008
  2. Joshua WilliamsSep 16, 2008
  3. Shawn O. PearceSep 24, 2008
  4. Joshua WilliamsSep 24, 2008
  5. Shawn O. PearceSep 24, 2008

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.