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

Re: [PATCH] stripspace: add --line-count flag

From
Sidhant Sharma <tigerkid001@gmail.com>
Date
Mar 4, 2016, 18:43 UTC
Message-ID
<56D9D750.1030703@gmail.com>
In-Reply-To
<1457116723-20206-1-git-send-email-tigerkid001@gmail.com>
>  builtin/stripspace.c       | 22 +++++++++++++++++++++-
>  git-rebase--interactive.sh |  6 +++---
>  2 files changed, 24 insertions(+), 4 deletions(-)
>

This is my first attempt at the small project listed here: https://git.wiki.kernel.org/index.php/SmallProjectsIdeas#implement_.27--count-lines.27_in_.27git_stripspace.27. With this, --line-count can be used with stripspace, instead of having to pipe its output to `wc -l` in git-rebase--interactive.sh. I went with --line-count and not --count-lines since its short form (-c) is already in use, and I think -l is more apt for this. Comments?

Thanks and regards, Sidhant Sharma [:tk]

Previous: Sidhant Sharma [:tk]Next: Junio C Hamano
Message 2 of 5 in “stripspace: add --line-count flag”
  1. stripspace: add --line-count flagSidhant Sharma [:tk], Mar 4, 2016
  2. Sidhant SharmaMar 4, 2016
  3. Junio C HamanoMar 4, 2016
  4. Sidhant SharmaMar 4, 2016
  5. Junio C HamanoMar 4, 2016

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.