From: Junio C Hamano Date: Sat, 18 Apr 2009 21:18:29 +0000 (-0700) Subject: Merge branch 'js/maint-submodule-checkout' into maint X-Git-Tag: v1.6.3-rc1~4^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f3924858133dff1e94c992b689fa425a6d27d4fd?ds=inline;hp=-c Merge branch 'js/maint-submodule-checkout' into maint * js/maint-submodule-checkout: Fix 'git checkout ' to update the index --- f3924858133dff1e94c992b689fa425a6d27d4fd diff --combined builtin-checkout.c index ed0f318c0c,c0abe1ca77..b121fe56de --- a/builtin-checkout.c +++ b/builtin-checkout.c @@@ -53,9 -53,6 +53,6 @@@ static int update_some(const unsigned c int len; struct cache_entry *ce; - if (S_ISGITLINK(mode)) - return 0; - if (S_ISDIR(mode)) return READ_TREE_RECURSIVE; @@@ -501,10 -498,10 +498,10 @@@ static void update_refs_for_switch(stru create_symref("HEAD", new->path, msg.buf); if (!opts->quiet) { if (old->path && !strcmp(new->path, old->path)) - fprintf(stderr, "Already on \"%s\"\n", + fprintf(stderr, "Already on '%s'\n", new->name); else - fprintf(stderr, "Switched to%s branch \"%s\"\n", + fprintf(stderr, "Switched to%s branch '%s'\n", opts->new_branch ? " a new" : "", new->name); } @@@ -513,7 -510,7 +510,7 @@@ REF_NODEREF, DIE_ON_ERR); if (!opts->quiet) { if (old->path) - fprintf(stderr, "Note: moving to \"%s\" which isn't a local branch\nIf you want to create a new branch from this checkout, you may do so\n(now or later) by using -b with the checkout command again. Example:\n git checkout -b \n", new->name); + fprintf(stderr, "Note: moving to '%s' which isn't a local branch\nIf you want to create a new branch from this checkout, you may do so\n(now or later) by using -b with the checkout command again. Example:\n git checkout -b \n", new->name); describe_detached_head("HEAD is now at", new->commit); } }