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

Re: [PATCH 2/3] difftool: chdir as early as possible

From
David Aguilar <davvid@gmail.com>
Date
Dec 10, 2016, 00:03 UTC
Message-ID
<20161210000359.4uypoxg67zlsthc7@gmail.com>
In-Reply-To
<xmqqbmwkr9ji.fsf@gitster.mtv.corp.google.com>
On Fri, Dec 09, 2016 at 03:02:09PM -0800, Junio C Hamano wrote:
Show 17 quoted lines
> David Aguilar <davvid@gmail.com> writes:
> 
> > @@ -182,10 +188,6 @@ EOF
> >  		}
> >  	}
> >  
> > -	# Go to the root of the worktree so that the left index files
> > -	# are properly setup -- the index is toplevel-relative.
> > -	chdir($workdir);
> > -
> >  	# Setup temp directories
> >  	my $tmpdir = tempdir('git-difftool.XXXXX', CLEANUP => 0, TMPDIR => 1);
> >  	my $ldir = "$tmpdir/left";
> 
> What codebase are you basing your work on?  I do not see these
> removed four lines in my tree, so it seems that the patch is fixing
> up some other fix I do not yet have.
Sorry about that.

I forgot to mention that this is based on the patches I recently sent, which were in the "pu" branch. The whats-cooking report mentioned that they'll be merged to "next", so they might be there already too.

The patch this was based upon:
difftool: fix dir-diff index creation when in a subdirectory
-- 
David
Previous: Junio C Hamano
Message 5 of 5 in “difftool: sanitize $workdir as early as possible”
  1. 1/3 difftool: sanitize $workdir as early as possibleDavid Aguilar, Dec 9, 2016
  2. 3/3 difftool: rename variables for consistencyDavid Aguilar, Dec 9, 2016
  3. 2/3 difftool: chdir as early as possibleDavid Aguilar, Dec 9, 2016
  4. Junio C HamanoDec 9, 2016
  5. David AguilarDec 10, 2016

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.