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

Re: Possible feature request for merge and pull

From
Bradley Wagner <bradley.wagner@hannonhill.com>
Date
Jul 28, 2010, 20:55 UTC
Message-ID
<AANLkTimXe1SYiVONTnN_4e1ieAKNHgKwJ7fBOYjL-CUE@mail.gmail.com>
In-Reply-To
<AANLkTikA2jWu76aPUNG+B7Nwc9eDzoU93VcGvUFWR0Ri@mail.gmail.com>
Avery,
On Wed, Jul 28, 2010 at 4:49 PM, Avery Pennarun <apenwarr@gmail.com> wrote:
Show 20 quoted lines
> On Wed, Jul 28, 2010 at 3:34 AM, Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>> On Wed, Jul 28, 2010 at 01:24, Bradley Wagner
>> <bradley.wagner@hannonhill.com> wrote:
>>> I would love to be able to use the -m flag and --log together with git
>>> merge and pull to be able to create a custom commit message but also
>>> include one-line summaries of each of the commits being merged/pulled.
>>
>> This sort of thing has vaguely come up before, and it was mentioned
>> that you can just use a small script that calls git-filter-branch or
>> git-rebase -i.
>>
>> It's easy to rewrite the commits you just pulled, having some feature
>> that e.g. adds a custom message to the beginning of each of them would
>> just impose an artificial limitation and overlap with existing (and
>> more powerful) functionality.
>
> If I understand correctly, the request is not to rewrite the pulled
> commits, but just to produce a nice message in the newly-created merge
> commit.
Yes, that's correct.
> It sounds like --log and -m are currently incompatible, in that -m
> overrides --log, and that's not the desired behaviour.

Correct, I can't remember which overrides which but basically it's as if you just used one of them. Also, git pull doesn't appear to take a -m flag at all.

> Bradley: this
> is probably a relatively easy fix to make, in case you're looking to
> get into some git hacking. :)
Nice, I may check that out.
Show 5 quoted lines
>
> Have fun,
>
> Avery
>
-- 
Hannon Hill - Put Us to the Test
bradley.wagner@hannonhill.com | http://www.hannonhill.com
Previous: Avery PennarunNext: Jeff King
Message 4 of 10 in “Possible feature request for merge and pull”
  1. Bradley WagnerJul 28, 2010
  2. Ævar Arnfjörð BjarmasonJul 28, 2010
  3. Avery PennarunJul 28, 2010
  4. Bradley WagnerJul 28, 2010
  5. Jeff KingJul 29, 2010
  6. Bradley WagnerJul 29, 2010
  7. Jonathan NiederJul 29, 2010
  8. Bradley WagnerJul 29, 2010
  9. Bradley WagnerJul 29, 2010
  10. Avery PennarunJul 29, 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.