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

Re: [PATCH] Provide better feedback for the untracked only case in status output

From
MLMichael Loeffler <zvpunry@zvpunry.de>
Date
Jan 10, 2007, 18:16 UTC
Message-ID
<1168452977.19643.57.camel@ibook.zvpunry.de>
In-Reply-To
<1168412892113-git-send-email-j.ruehle@bmiag.de>
hi,

Am Mittwoch, den 10.01.2007, 08:08 +0100 schrieb Juergen Ruehle: ...

> @@ -311,12 +312,14 @@ void wt_status_print(struct wt_status *s)
...
> +		else if (s->is_initial)
> +			printf("nothing to commit (working directory is empty)\n");
Shouldn't the user know that there is nothing in his working directory?
> +		else
> +			printf("nothing to commit (working directory matches HEAD)\n");
How about s/matches HEAD/clean/

There is another thing: # Changed but not added: # (use "git add <file>..." to incrementally add content to commit) # # deleted: blah

How about adding some more hints (e.g.: git rm --cached <file>) depending on the diff_queue in wt_status_print_changed_cb()?

bye michael
Previous: Junio C HamanoNext: Juergen Ruehle
Message 19 of 26 in “Suggest use of "git add file1 file2" when there is nothing to commit.”
  1. 1/2 Suggest use of "git add file1 file2" when there is nothing to commit.Shawn O. Pearce, Dec 16, 2006
  2. Michael LoefflerJan 5, 2007
  3. Junio C HamanoJan 5, 2007
  4. Junio C HamanoJan 6, 2007
  5. Juergen RuehleJan 6, 2007
  6. Junio C HamanoJan 6, 2007
  7. Juergen RuehleJan 6, 2007
  8. Junio C HamanoJan 8, 2007
  9. Juergen RuehleJan 8, 2007
  10. Junio C HamanoJan 8, 2007
  11. Provide better feedback for the untracked only case in status outputJuergen Ruehle, Jan 10, 2007
  12. Juergen RuehleJan 10, 2007
  13. Juergen RuehleJan 10, 2007
  14. Junio C HamanoJan 10, 2007
  15. Juergen RuehleJan 10, 2007
  16. Quick hack to avoid double qp encodingJuergen Ruehle, Jan 10, 2007
  17. Juergen RuehleJan 10, 2007
  18. Junio C HamanoJan 10, 2007
  19. Michael LoefflerJan 10, 2007
  20. Juergen RuehleJan 10, 2007
  21. Provide better feedback for the untracked only case in status outputJuergen Ruehle, Jan 10, 2007
  22. Jeff KingJan 10, 2007
  23. Juergen RuehleJan 11, 2007
  24. Juergen RuehleJan 6, 2007
  25. Michael LoefflerJan 8, 2007
  26. Juergen RuehleJan 9, 2007

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.