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

Re: [StGit PATCH] Print conflict details with the new infrastructure (bug #11181)

From
Karl Hasselström <kha@treskal.com>
Date
Dec 2, 2008, 15:43 UTC
Message-ID
<20081202154359.GB19967@diana.vm.bytemark.co.uk>
In-Reply-To
<20081202144045.24372.69278.stgit@localhost.localdomain>
On 2008-12-02 14:40:45 +0000, Catalin Marinas wrote:
> The patch modifies the IndexAndWorkTree.merge() function to display
> pass the conflict information (files) when raising an exception. The
> logic is similar to the one in the old infrastructure.
Good. But
>          if self.__error:
> -            out.error(self.__error)
> +            error_lines = self.__error.split('\n')
> +            out.error(*error_lines)

this feels like something of a hack. Wouldn't it be cleaner to modify MergeConflictException to hold e.g. the set of conflicting filenames, and let it have a method that returned a list of lines? No biggie, though.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Catalin Marinas
Message 2 of 2 in “Print conflict details with the new infrastructure (bug #11181)”
  1. Print conflict details with the new infrastructure (bug #11181)Catalin Marinas, Dec 2, 2008
  2. Karl HasselströmDec 2, 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.