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

Re: [StGit PATCH] Add mergetool support to the classic StGit infrastructure

From
Karl Hasselström <kha@treskal.com>
Date
Feb 11, 2009, 09:25 UTC
Message-ID
<20090211092513.GD26136@diana.vm.bytemark.co.uk>
In-Reply-To
<20090210141413.28782.19243.stgit@pc1117.cambridge.arm.com>
On 2009-02-10 14:14:17 +0000, Catalin Marinas wrote:
Show 5 quoted lines
> Since Git already has a tool for interactively solving conflicts
> which is highly customisable, there is no need to duplicate this
> feature via the i3merge and i2merge configuration options. The
> user-visible change is that now mergetool is invoked rather than the
> previously customised interactive merging tool.
Very good.
Show 5 quoted lines
> +def mergetool(self, files = []):
> +    """Invoke 'git mergetool' to resolve any outstanding conflicts."""
> +    err = os.system('git mergetool %s' % ' '.join(files))
> +    if err:
> +        raise GitException('"git mergetool" failed, exit code: %d' % err)
Again, what happens if "files" is not given?
Show 7 quoted lines
> @@ -754,7 +758,6 @@ def resolved(filenames, reset = None):
>               '--stdin', '-z').input_nulterm(filenames).no_output()
>      GRun('update-index', '--add', '--').xargs(filenames)
>      for filename in filenames:
> -        gitmergeonefile.clean_up(filename)
>          # update the access and modificatied times
>          os.utime(filename, None)

Hmm, what does this line do, and why isn't it needed anymore? I don't know this part of StGit, I'm just curious ...

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Catalin MarinasNext: Karl Hasselström
Message 2 of 3 in “Add mergetool support to the classic StGit infrastructure”
  1. Add mergetool support to the classic StGit infrastructureCatalin Marinas, Feb 10, 2009
  2. Karl HasselströmFeb 11, 2009
  3. Karl HasselströmFeb 11, 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.