basepi / libgit2

The Library
http://libgit2.github.com
Other
0 stars 0 forks source link

git diff with newly added files. #35

Closed vimalloc closed 7 years ago

vimalloc commented 13 years ago

In git, if you use git diff and there is a newly added file in your file system but not in the repository, then the contents of that file are not part of the diff. If you delete a file from the file system that was in the repository, then that file is still included in the diff.

Should we follow this behavior? If so it would make the git_diff() function virtually done, minus actually doing the diffs on the files that have changed.

hausdorf commented 13 years ago

Nice catch, man. I vote that we should remain consistent with git's functionality.