]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

* Add a "record" subcommand, borrowing termonology from darcs. This does a
authorJoey Hess <joey@kitenet.net>
Sat, 22 Dec 2007 19:01:25 +0000 (14:01 -0500)
committerJoey Hess <joey@kitenet.net>
Sat, 22 Dec 2007 19:01:25 +0000 (14:01 -0500)
  local commit, but does not push changes to remote repos.

debian/changelog
mr

index c900fb177af2c782a9a73a4813b1708c241ac44b..cca62ecefd4285cef461cff7b56beb19b011c0e3 100644 (file)
@@ -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 <joeyh@debian.org>  Sat, 22 Dec 2007 13:53:31 -0500
 
diff --git a/mr b/mr
index f4ef871c0be0918bf91e3bc726b24da8c797bfad..9efe969fcaa8dbc326328de98085550ac5e16777 100755 (executable)
--- a/mr
+++ b/mr
@@ -16,6 +16,8 @@ B<mr> [options] status
 
 B<mr> [options] commit [-m "message"]
 
+B<mr> [options] record [-m "message"]
+
 B<mr> [options] diff
 
 B<mr> [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 "$@"