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

Re: [PATCH v3 2/2] rebase -i: save only original commit sha1 to save author information

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 22, 2009, 09:27 UTC
Message-ID
<alpine.DEB.1.00.0906221126040.4168@intel-tinevez-2-302>
In-Reply-To
<200906220935.11581.jnareb@gmail.com>
Hi,
On Mon, 22 Jun 2009, Jakub Narebski wrote:
Show 9 quoted lines
> Christian Couder wrote:
> 
> > +                       GIT_AUTHOR_NAME="$author_ident_name" \
> > +                       GIT_AUTHOR_EMAIL="$author_ident_email" \
> > +                       GIT_AUTHOR_DATE="$author_ident_date" \
> >                         $USE_OUTPUT git commit --no-verify \
> >                                 $MSG_OPT "$EDIT_OR_FILE" || failed=t
> 
> Why not use 'git commit -C $(cat "$SAVED_COMMIT") ...' ?

Unfortunately, the quoted part lacks context, so I can only guess that the issue is "squash". You need to retain authorship, but want to present a message to the user that is in no commit yet. And no, constructing a new commit for the purpose of passing it to "commit -C" would be way too shabby coding IMO.

Ciao, Dscho

Previous: Jakub Narebski
Message 3 of 3 in “rebase -i: save only original commit sha1 to save author information”
  1. 2/2 rebase -i: save only original commit sha1 to save author informationChristian Couder, Jun 22, 2009
  2. Jakub NarebskiJun 22, 2009
  3. Johannes SchindelinJun 22, 2009

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.