]> git.proxmox.com Git - libgit2.git/commit - src/iterator.h
Fix a few diff bugs with directory content
authorRussell Belfer <rb@github.com>
Mon, 8 Oct 2012 22:14:12 +0000 (15:14 -0700)
committerRussell Belfer <rb@github.com>
Mon, 8 Oct 2012 22:22:40 +0000 (15:22 -0700)
commitdfbff793b8f39995d3a8744d6b7d75d5cc7201a0
tree0ffa00f2e946fc65596b08b6064ac2fee25a0963
parent543864b677704845660085d2b2b2249cabb084a4
Fix a few diff bugs with directory content

There are a few cases where diff should leave directories in
the diff list if we want to match core git, such as when the
directory contains a .git dir.  That feature was lost when I
introduced some of the new submodule handling.

This restores that and then fixes a couple of related to diff
output that are triggered by having diffs with directories in
them.

Also, this adds a new flag that can be passed to diff if you
want diff output to actually include the file content of any
untracked files.
include/git2/diff.h
src/diff.c
src/diff_output.c
src/iterator.c
src/iterator.h