git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] stripspace: Implement and use --count-lines option
@ 2015-10-15 12:18 Tobias Klauser
  2015-10-15 12:18 ` [PATCH 1/3] strbuf: make stripspace() part of strbuf Tobias Klauser
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Tobias Klauser @ 2015-10-15 12:18 UTC (permalink / raw)
  To: Junio C Hamano, Matthieu Moy, git

This patch set implements some of the project ideas around git stripspace
suggested on [1].

[1] https://git.wiki.kernel.org/index.php/SmallProjectsIdeas

The first patch moves the stripspace() function to the
strbuf module (adding a prefix and changing all users accordingly, also
a wrapper is introduced in case any topic branches still depend on the
old name). The second patch introduces option --count-lines to git
stripspace and also adds documentation and tests accordingly, Finally,
the third patch changes git-rebase--interactive.sh to replace commands
like:

	git stripspace ... | wc -l

with:

	git stripspace --count-lines ...

Tobias Klauser (3):
  strbuf: make stripspace() part of strbuf
  stripspace: Implement --count-lines option
  git rebase -i: Use newly added --count-lines option for stripspace

 Documentation/git-stripspace.txt |  13 ++++-
 builtin/am.c                     |   2 +-
 builtin/branch.c                 |   2 +-
 builtin/commit.c                 |   6 +-
 builtin/merge.c                  |   2 +-
 builtin/notes.c                  |   6 +-
 builtin/stripspace.c             | 122 ++++++++++-----------------------------
 builtin/tag.c                    |   2 +-
 git-rebase--interactive.sh       |   6 +-
 strbuf.c                         |  72 +++++++++++++++++++++++
 strbuf.h                         |  14 ++++-
 t/t0030-stripspace.sh            |  36 ++++++++++++
 12 files changed, 177 insertions(+), 106 deletions(-)

-- 
2.6.1.145.gb27dacc

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-10-17 10:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 12:18 [PATCH 0/3] stripspace: Implement and use --count-lines option Tobias Klauser
2015-10-15 12:18 ` [PATCH 1/3] strbuf: make stripspace() part of strbuf Tobias Klauser
2015-10-15 16:42   ` Matthieu Moy
2015-10-16  7:14     ` Tobias Klauser
2015-10-15 16:43   ` Matthieu Moy
2015-10-15 17:36   ` Junio C Hamano
2015-10-16  7:09     ` Tobias Klauser
2015-10-15 12:18 ` [PATCH 2/3] stripspace: Implement --count-lines option Tobias Klauser
2015-10-15 16:52   ` Matthieu Moy
2015-10-16  7:21     ` Tobias Klauser
2015-10-16  8:40     ` Tobias Klauser
2015-10-16  8:59       ` Matthieu Moy
2015-10-15 17:58   ` Junio C Hamano
2015-10-16  7:51     ` Tobias Klauser
2015-10-16 17:35       ` Junio C Hamano
2015-10-17 10:44         ` Tobias Klauser
2015-10-15 19:21   ` Matthieu Moy
2015-10-16  7:54     ` Tobias Klauser
2015-10-15 12:18 ` [PATCH 3/3] git rebase -i: Use newly added --count-lines option for stripspace Tobias Klauser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).