Re: [PATCH v6 26/32] checkout: detach if the branch is already checked out elsewhere

From
Max Kirillov <hidden>
Date
2016-06-15 23:01:54
Reply to
Nguyễn Thái Ngọc Duy, 2016-06-15
On Wed, Jul 09, 2014 at 02:33:11PM +0700, Nguyễn Thái Ngọc Duy wrote:
quoted hunk ↗ jump to hunk
+static int check_linked_checkout(struct branch_info *new,
+				  const char *name, const char *path)
+{
...
+	if (!strncmp(start, new->path, end - start) &&
+	    new->path[end - start] == '\0') {
This also detaches if the "holding checkout" is _this_
checkout, that is, when you are checking out the currently
checked our branch.

-- 
Max
Thread (78 messages) 78 messages, 5 authors, last reply 2016-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help