summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9926ba9)
raw | patch | inline | side by side (parent: 9926ba9)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 23 Oct 2006 07:46:15 +0000 (00:46 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 28 Oct 2006 00:16:40 +0000 (17:16 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
merge-recursive.c | patch | blob | history |
diff --git a/merge-recursive.c b/merge-recursive.c
index ccfa905e995088f57550aa4717561c9d428911fe..74074c577b8a75b99dd9d2a3fed41d5e33c43db3 100644 (file)
--- a/merge-recursive.c
+++ b/merge-recursive.c
return renames;
}
-int update_stages(const char *path, struct diff_filespec *o,
- struct diff_filespec *a, struct diff_filespec *b, int clear)
+static int update_stages(const char *path, struct diff_filespec *o,
+ struct diff_filespec *a, struct diff_filespec *b,
+ int clear)
{
int options = ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE;
if (clear)
return ret;
}
-int remove_file(int clean, const char *path)
+static int remove_file(int clean, const char *path)
{
int update_cache = index_only || clean;
int update_working_directory = !index_only;
}
}
-void update_file_flags(const unsigned char *sha,
- unsigned mode,
- const char *path,
- int update_cache,
- int update_wd)
+static void update_file_flags(const unsigned char *sha,
+ unsigned mode,
+ const char *path,
+ int update_cache,
+ int update_wd)
{
if (index_only)
update_wd = 0;
add_cacheinfo(mode, sha, path, 0, update_wd, ADD_CACHE_OK_TO_ADD);
}
-void update_file(int clean,
- const unsigned char *sha,
- unsigned mode,
- const char *path)
+static void update_file(int clean,
+ const unsigned char *sha,
+ unsigned mode,
+ const char *path)
{
update_file_flags(sha, mode, path, index_only || clean, !index_only);
}