Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/unpack-trees-reword'
author
Junio C Hamano
<gitster@pobox.com>
Sun, 25 May 2008 20:38:27 +0000
(13:38 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 25 May 2008 20:38:27 +0000
(13:38 -0700)
* jc/unpack-trees-reword:
unpack-trees: allow Porcelain to give different error messages
1
2
builtin-checkout.c
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
compact
(merge:
2931344
8ccba00
)
diff --combined
builtin-checkout.c
index 05c06421b6c3a6d75b598e3c58a40c8461febd75,83da7ca9ffae6a7fae94fcd012078bdec36ed72e..68fffd28cb636d115ed4491b55ce3b87d0b97109
---
1
/
builtin-checkout.c
---
2
/
builtin-checkout.c
+++ b/
builtin-checkout.c
@@@
-236,6
-236,8
+236,8
@@@
static int merge_working_tree(struct ch
topts.src_index = &the_index;
topts.dst_index = &the_index;
+ topts.msgs.not_uptodate_file = "You have local changes to '%s'; cannot switch branches.";
+
refresh_cache(REFRESH_QUIET);
if (unmerged_cache()) {
@@@
-282,7
-284,7
+284,7
@@@
* entries in the index.
*/
- add_files_to_cache(
0, NULL, NULL
);
+ add_files_to_cache(
NULL, NULL, 0
);
work = write_tree_from_memory();
ret = reset_to_new(new->commit->tree, opts->quiet);