summaryrefslogtreecommitdiffstats
path: root/unpack-trees.h
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2010-08-11 10:38:06 +0200
committerJunio C Hamano <gitster@pobox.com>2010-08-11 10:36:05 -0700
commit08402b0409bc501deb97cf4388a78ee9f87092c6 (patch)
treec0b4207f0ae69970a21b4e94725d4318dc6ea6f5 /unpack-trees.h
parent23cbf11b5c08c6d0ab0fd0d6f2dc5a32ca31c745 (diff)
downloadgit-08402b0409bc501deb97cf4388a78ee9f87092c6.tar.gz
git-08402b0409bc501deb97cf4388a78ee9f87092c6.tar.xz
merge-recursive: distinguish "removed" and "overwritten" messages
To limit the number of possible error messages, the error messages for the case would_lose_untracked_file and would_lose_orphaned in unpack_trees_options.msgs were handled with a single string, parameterized by an action string ("overwritten" or "removed"). Instead, we consider them as two different cases, with unparameterized string. This will make it easier to make separate lists sorted by error types later. Only the bind_overlap case still takes two %s parameters, but that's unavoidable. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.h')
-rw-r--r--unpack-trees.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/unpack-trees.h b/unpack-trees.h
index 09e22522f..8be6b3cca 100644
--- a/unpack-trees.h
+++ b/unpack-trees.h
@@ -13,10 +13,12 @@ enum unpack_trees_error_types {
ERROR_WOULD_OVERWRITE = 0,
ERROR_NOT_UPTODATE_FILE,
ERROR_NOT_UPTODATE_DIR,
- ERROR_WOULD_LOSE_UNTRACKED,
+ ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN,
+ ERROR_WOULD_LOSE_UNTRACKED_REMOVED,
ERROR_BIND_OVERLAP,
ERROR_SPARSE_NOT_UPTODATE_FILE,
- ERROR_WOULD_LOSE_ORPHANED,
+ ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN,
+ ERROR_WOULD_LOSE_ORPHANED_REMOVED,
NB_UNPACK_TREES_ERROR_TYPES
};