git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 2/4] builtin-status: submodule summary support

From
Ping Yin <pkufranky@gmail.com>
Date
Mar 13, 2008, 18:01 UTC
Message-ID
<46dff0320803131101g62c16db2wf999c851672a8e0@mail.gmail.com>
In-Reply-To
<47D935FE.8010107@viscovery.net>
On Thu, Mar 13, 2008 at 10:11 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 10 quoted lines
> Ping Yin schrieb:
>
>  >       wt_status_print_changed(s);
>  > +     // must flush s->fp since following call will write to s->fp in a child process
>  > +     fflush(s->fp);
>  > +     wt_status_print_submodule_summary(s);
>  >       wt_status_print_untracked(s);
>
>  But then we don't need the fflush() here. Right?
>
You are right.
diff --git a/wt-status.c b/wt-status.c
index 2f47e36..468c14c 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -352,8 +352,6 @@ void wt_status_print(struct wt_status *s)
        }

        wt_status_print_changed(s);
-       // must flush s->fp since following call will write to s->fp
in a child process
-       fflush(s->fp);
        wt_status_print_submodule_summary(s);
        wt_status_print_untracked(s)
-- 
Ping Yin
Previous: Johannes SixtNext: Ping Yin
Message 12 of 15 in “builtin-status submodule summary”
  1. Ping YinMar 13, 2008
  2. 1/4 git-submodule summary: --for-status optionPing Yin, Mar 13, 2008
  3. 2/4 builtin-status: submodule summary supportPing Yin, Mar 13, 2008
  4. 3/4 builtin-status: configurable submodule summary sizePing Yin, Mar 13, 2008
  5. 4/4 buitin-status: Add tests for submodule summaryPing Yin, Mar 13, 2008
  6. Johannes SixtMar 13, 2008
  7. Junio C HamanoMar 13, 2008
  8. Ping YinMar 13, 2008
  9. Ping YinMar 13, 2008
  10. Johannes SixtMar 13, 2008
  11. Johannes SixtMar 13, 2008
  12. Ping YinMar 13, 2008
  13. Ping YinMar 14, 2008
  14. Junio C HamanoMar 14, 2008
  15. Ping YinMar 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.