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

Re: git-gui: textconv not used on unstaged files

From
Peter Oberndorfer <kumbayo84@arcor.de>
Date
Nov 27, 2012, 20:37 UTC
Message-ID
<50B52478.2070701@arcor.de>
In-Reply-To
<7vk3t8qe4s.fsf@alter.siamese.dyndns.org>
On 2012-11-26 21:54, Junio C Hamano wrote:
Show 14 quoted lines
> Peter Oberndorfer <kumbayo84@arcor.de> writes:
>
>> Does anybody have a idea which git command would output the diff
>> of a untracked file against /dev/null?
> The "--no-index" option is meant as a bolt-on to let you use various
> features of "git diff" that is missing from other people's "diff" in
> a context where git does not know anything about that file.  It
> should be usable even outside a git repository.
>
>     $ git diff --no-index /dev/null new-file.txt
>
> I do not know offhand (and didn't bother to check) if textconv
> applies, though.  It does need access to a git repository as it
> reads from the $GIT_DIR/config to learn what to do.
Hi,

this seems to work when adding the --textconv option. I will try to see if I can modify git gui to use this command when clicking a unstaged file.

Thanks, Greetings Peter

Previous: Junio C Hamano
Message 4 of 4 in “git-gui: textconv not used on unstaged files”
  1. Peter OberndorferOct 24, 2012
  2. Peter OberndorferNov 26, 2012
  3. Junio C HamanoNov 26, 2012
  4. Peter OberndorferNov 27, 2012

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.