summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-12-05 13:56:32 -0800
committerRussell Belfer <rb@github.com>2012-12-05 13:56:32 -0800
commit32770c52a81091bb2ddbc3cbf8926ecdd4b10687 (patch)
treef69a828567929edff5c900ecb56e32c318bb3f17 /src
parenta9c07c47ea6efd95f6e26639d85bbd60aa407c42 (diff)
downloadlibgit2-32770c52a81091bb2ddbc3cbf8926ecdd4b10687.tar.gz
Fix diff header comments and missing const
Based on the recent work to wrap diff in objective-git, this includes a fix for a missing const and a number of clarifications of the documentation.
Diffstat (limited to 'src')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 46d96bb96..c4bfc3687 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -285,7 +285,7 @@ static git_diff_list *git_diff_list_alloc(
goto fail;
if (diff->opts.flags & GIT_DIFF_REVERSE) {
- char *swap = diff->opts.old_prefix;
+ const char *swap = diff->opts.old_prefix;
diff->opts.old_prefix = diff->opts.new_prefix;
diff->opts.new_prefix = swap;
}