From: Joey Hess Date: Sat, 22 Dec 2007 19:01:25 +0000 (-0500) Subject: * Add a "record" subcommand, borrowing termonology from darcs. This does a X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/372203672369b7370f3829b6f9f7690398abcb23 * Add a "record" subcommand, borrowing termonology from darcs. This does a local commit, but does not push changes to remote repos. --- diff --git a/debian/changelog b/debian/changelog index c900fb1..cca62ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ mr (0.20) UNRELEASED; urgency=low * Add -q flag. * darcs: Add -u to diff to get a more usual unified diff. + * Add a "record" subcommand, borrowing termonology from darcs. This does a + local commit, but does not push changes to remote repos. -- Joey Hess Sat, 22 Dec 2007 13:53:31 -0500 diff --git a/mr b/mr index f4ef871..9efe969 100755 --- a/mr +++ b/mr @@ -16,6 +16,8 @@ B [options] status B [options] commit [-m "message"] +B [options] record [-m "message"] + B [options] diff B [options] log @@ -62,7 +64,16 @@ uncommitted changes are present in the repository. =item commit (or ci) Commits changes to each repository. (By default, changes are pushed to the -remote repository too, when using distributed systems like git.) +remote repository too, when using distributed systems like git. If you +don't like this default, you can change it in your .mrconfig, or use record +instead.) + +The optional -m parameter allows specifying a commit message. + +=item record + +Records changes to the local repository, but does not push them to the +remote repository. Only supported for distributed revision control systems. The optional -m parameter allows specifying a commit message. @@ -1197,6 +1208,11 @@ cvs_commit = cvs commit "$@" hg_commit = hg commit -m "$@" && hg push darcs_commit = darcs record -a -m "$@" && darcs push -a +git_commit = git commit -a "$@" +bzr_commit = bzr commit "$@" +hg_commit = hg commit -m "$@" +darcs_commit = darcs record -a -m "$@" + svn_diff = svn diff "$@" git_diff = git diff "$@" bzr_diff = bzr diff "$@"