diff options
author | Russell Belfer <rb@github.com> | 2014-04-28 14:34:55 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-05-02 09:21:33 -0700 |
commit | 0fc8e1f6bd9a5148d3a262142e9a70126f5c3a42 (patch) | |
tree | 7941140dacf3a0b820363280ecdca2790cf5cdf3 /include/git2 | |
parent | 8ef4e11a76599111b98682d235e7a4df921b2597 (diff) | |
download | libgit2-0fc8e1f6bd9a5148d3a262142e9a70126f5c3a42.tar.gz |
Lay groundwork for updating stat cache in diff
This reorganized the diff OID calculation to make it easier to
correctly update the stat cache during a diff once the flags to
do so are enabled.
This includes marking the path of a git_index_entry as const so
we can make a "fake" git_index_entry with a "const char *" path
and not get warnings. I was a little surprised at how unobtrusive
this change was, but I think it's probably a good thing.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/index.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index 05e58a632..cdb87282c 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -61,7 +61,7 @@ typedef struct git_index_entry { unsigned short flags; unsigned short flags_extended; - char *path; + const char *path; } git_index_entry; /** |