All of lore.kernel.org
 help / color / mirror / Atom feed
* git-testadd: Execute a command with only the staged changes in Git applied
@ 2016-07-28 16:20 Øyvind A. Holm
       [not found] ` <xmqqlh0lsoq6.fsf@gitster.mtv.corp.google.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Øyvind A. Holm @ 2016-07-28 16:20 UTC (permalink / raw)
  To: git

This is a script I created some weeks ago, and I've found it to be
immensely useful. Here is a snippet from git-testadd --help:

  If you have lots of unrelated uncommitted changes in the current
  repository and want to split up the commit, how can you easily check
  if the changes passes the test suite? With all the other unrelated
  changes it can be hard to make sure that only relevant changes becomes
  part of the commit, and that they don't result in regressions. This
  script clones the repository to the directory ".testadd.tmp" in the
  current directory and applies the staged chenges there (unless
  -u/--unmodified or -p/--pristine is specified), chdirs to the same
  relative directory in the clone and executes the command specified on
  the command line there.

The script is well-tested, and also have a test suite you can run to
make sure it works on your *nix system. Place git-testadd.t in a
subdirectory one level under the script location, chdir to that
directory and execute "./git-testadd.t". It also works with binary
files.

Available from

  https://gitlab.com/sunny256/utils/raw/master/git-testadd
  https://gitlab.com/sunny256/utils/raw/master/tests/git-testadd.t

It's also on GitHub, just replace "gitlab" with "github" in the URLs.
And of course, ideas and patches for new functionality/fixes are always
welcome.

        Øyvind

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

end of thread, other threads:[~2016-07-28 23:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 16:20 git-testadd: Execute a command with only the staged changes in Git applied Øyvind A. Holm
     [not found] ` <xmqqlh0lsoq6.fsf@gitster.mtv.corp.google.com>
2016-07-28 16:56   ` Øyvind A. Holm
2016-07-28 19:31     ` Jakub Narębski
2016-07-28 22:31       ` Øyvind A. Holm
     [not found]         ` <xmqqzip1pew5.fsf@gitster.mtv.corp.google.com>
2016-07-28 23:17           ` Øyvind A. Holm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.