1
0
mirror of https://github.com/git/git.git synced 2024-10-22 23:58:22 +02:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Bert Wesarg c976bbff3c git-gui: rework handling of diff header
The fix in ca53c3f (Fix diff parsing for lines starting with "--" or "++",
2008-09-05) got a bug report from Johannes Sixt, that new files in the
index now looks like:

  new file mode 100644
  --- /dev/null
  +++ b/foo
  @@ -0,0 +1 @@
  +foo

The introduced problem was that the 'in-diff-header'-flag was unconditially
disabled. Now it is only disabled when a hunk line is detected. And also
re-enabled when we encounter a new diff header.

The second part solves also the issue reported by me for diffs with file
type changes (i.e. the ''error: Unhandled 2 way diff marker: {d}"', which
comes from the second 'diff --git' line).

Reported-by: Johannes Sixt <j.sixt@viscovery.net>
Reported-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
2011-01-28 09:01:17 +00:00
lib git-gui: rework handling of diff header 2011-01-28 09:01:17 +00:00
macosx git-gui: Correct 'Visualize Branches' on Mac OS X to start gitk 2008-07-25 15:08:33 -07:00
po git-gui: add Brazilian Portuguese (pt-BR) translation 2011-01-27 16:22:10 +00:00
windows git-gui: fix PATH environment for mingw development environment 2010-07-30 09:57:26 +01:00
.gitattributes git-gui: Use gitattribute "encoding" for file content display 2008-09-24 12:48:31 -07:00
.gitignore git-gui: Honor a config.mak in git-gui's top level 2007-10-13 22:14:14 -04:00
git-gui--askpass git-gui: ensure correct application termination in git-gui--askpass 2010-08-18 23:19:24 +01:00
git-gui.sh git-gui: learn more type change states 2011-01-28 00:16:50 +00:00
GIT-VERSION-GEN git-gui 0.13 2010-09-14 22:42:37 +01:00
Makefile git-gui: use shell to launch textconv filter in "blame" 2010-08-12 21:35:09 +01:00