When --patch or pathspecs are passed to git checkout, the working tree
will not be switching branch, so there's no need to check if the branch
that we are running checkout on is already checked out.
Original-patch-by: Spencer Baugh sba...@catern.com
Signed-off-by: Nguyễn Thái Ngọc Duy
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
When --patch or pathspecs are passed to git checkout, the working tree
will not be switching branch, so there's no need to check if the branch
that we are running checkout on is already checked out.
Yeah, I agree that having this check in
Duy Nguyen pclo...@gmail.com writes:
On Sun, May 31, 2015 at 07:16:29PM -0400, Spencer Baugh wrote:
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -1237,6 +1237,7 @@ static int parse_branchname_arg(int argc, const char
**argv,
char *head_ref = resolve_refdup(HEAD, 0,
On Sun, May 31, 2015 at 07:16:29PM -0400, Spencer Baugh wrote:
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -1237,6 +1237,7 @@ static int parse_branchname_arg(int argc, const char
**argv,
char *head_ref = resolve_refdup(HEAD, 0, sha1, flag);
if (head_ref
When --patch or pathspecs are passed to git checkout, the working tree
will not be switching branch, so there's no need to check if the branch
that we are running checkout on is already checked out.
Signed-off-by: Spencer Baugh sba...@catern.com
---
builtin/checkout.c | 1 +
1 file changed, 1
5 matches
Mail list logo