stagit

git site generator
Contents

detect filetype changes in diff (for example a normal file to symlink)

Hiltjo Posthuma hiltjo@codemadness.org

commit: 446a285 parent: 2918f04
1 files changed, 3 insertions(+), 1 deletions(-)
Mstagit.c+3-1
M · stagit.c +3, -1
 1@@ -114,7 +114,9 @@ commitinfo_getstats(struct commitinfo *ci)
 2 }
 3
 4
git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION);
 5- opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH;
 6+ opts.flags |=
GIT_DIFF_DISABLE_PATHSPEC_MATCH |
 7+
GIT_DIFF_IGNORE_SUBMODULES |
 8+
GIT_DIFF_INCLUDE_TYPECHANGE;
 9 if (git_diff_tree_to_tree(&(ci->diff),
repo, ci->parent_tree, ci->commit_tree, &opts))
10 goto err;
11