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

Re: conflict resolution of pd/bash-4-completion [Re: What's cooking in git.git (Dec 2010, #05; Thu, 16)]

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2010, 19:24 UTC
Message-ID
<7v1v5gjj7l.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20101217111856.GA9304@neumann>
SZEDER Gábor <szeder@ira.uka.de> writes:
Show 12 quoted lines
> On Thu, Dec 16, 2010 at 11:38:21PM -0800, Junio C Hamano wrote:
>> * pd/bash-4-completion (2010-12-15) 3 commits
>>  - Merge branch 'master' (early part) into pd/bash-4-completion
>>  - bash: simple reimplementation of _get_comp_words_by_ref
>>  - bash: get --pretty=m<tab> completion to work with bash v4
>> 
>> Updated by Jonathan; this still has some conflicts around "notes"
>> completion I tried to resolve near the tip of 'pu'.
>
> The resolution of that conflict is not quite correct.  I'm not sure
> how I should send a proper conflict resolution...  but I'll try
> anyway.

Thanks, this helped me quite a lot to update my rerere database, so that the fix-up can be carried forward in future merges to 'next' and eventually 'master'.

For anybody interested, here is how a merge fix-up patch like yours can be used:

1. First apply to the commit it is intended to be applied:
    $ git co pu
    $ git am your-patch
2. Re-attempt the merge.  CG stands for "Commit Goal".
    $ CG=$(git rev-parse HEAD)
    $ git reset --hard HEAD^^
    $ git merge pd/bash-4-completion
3. Clear the rerere database and redo the merge, letting it conflict.
    $ git rerere forget contrib/completion/git-completion.bash
    $ git reset --hard
    $ git merge pd/bash-4-completion
4. Take the fixup and conclude the merge; this updates the rerere
   database.
    $ git checkout $CG .
    $ git commit
Previous: SZEDER GáborNext: Ramsay Jones
Message 3 of 4 in “What's cooking in git.git (Dec 2010, #05; Thu, 16)”
  1. Junio C HamanoDec 17, 2010
  2. conflict resolution of pd/bash-4-completion [Re: What's cooking in git.git (Dec 2010, #05; Thu, 16)]SZEDER Gábor, Dec 17, 2010
  3. Junio C HamanoDec 17, 2010
  4. Ramsay JonesDec 18, 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.