Re: [PATCH 1/1] status: display "doing what" information in git status

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 1/1] status: display "doing what" information in git status

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:10

Pierre Habouzit [off-list ref] writes:
quoted hunk
@@ -732,6 +805,7 @@ void wt_status_print(struct wt_status *s)
 		status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
 	}
 
+	wt_status_print_doingwhat(s);
 	wt_status_print_updated(s);
 	wt_status_print_unmerged(s);
 	wt_status_print_changed(s);
I am very surprised that a new call to this function is added here.

As the "You are in middle of" information is useful mostly when you are on
detached head, I would have expected that the call would be inside the
if/elif chain near the top of wt_status_print() where we say "On branch"
vs "Not currently on...", to replace that information that comes from that
on_what variable.

Re: [PATCH 1/1] status: display "doing what" information in git status

From: Pierre Habouzit <hidden>
Date: 2016-06-15 22:51:10

On Thu, May 05, 2011 at 04:37:00PM -0700, Junio C Hamano wrote:
Pierre Habouzit [off-list ref] writes:
quoted
@@ -732,6 +805,7 @@ void wt_status_print(struct wt_status *s)
 		status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
 	}
 
+	wt_status_print_doingwhat(s);
 	wt_status_print_updated(s);
 	wt_status_print_unmerged(s);
 	wt_status_print_changed(s);
I am very surprised that a new call to this function is added here.

As the "You are in middle of" information is useful mostly when you are on
detached head, I would have expected that the call would be inside the
if/elif chain near the top of wt_status_print() where we say "On branch"
vs "Not currently on...", to replace that information that comes from that
on_what variable.
It's also useful when you're in the middle of a rebase or during a merge
conflict who aren't on a detached head.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Re: [PATCH 1/1] status: display "doing what" information in git status

From: Pierre Habouzit <hidden>
Date: 2016-06-15 22:51:10

On Fri, May 06, 2011 at 01:39:25AM +0200, Pierre Habouzit wrote:
On Thu, May 05, 2011 at 04:37:00PM -0700, Junio C Hamano wrote:
quoted
Pierre Habouzit [off-list ref] writes:
quoted
@@ -732,6 +805,7 @@ void wt_status_print(struct wt_status *s)
 		status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
 	}
 
+	wt_status_print_doingwhat(s);
 	wt_status_print_updated(s);
 	wt_status_print_unmerged(s);
 	wt_status_print_changed(s);
I am very surprised that a new call to this function is added here.

As the "You are in middle of" information is useful mostly when you are on
detached head, I would have expected that the call would be inside the
if/elif chain near the top of wt_status_print() where we say "On branch"
vs "Not currently on...", to replace that information that comes from that
on_what variable.
It's also useful when you're in the middle of a rebase or during a merge
conflict who aren't on a detached head.
s/rebase/bisect/ sorry it's late.

Anyways it prints nothing if the repository "looks normal"
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help