]> git.madduck.net Git - code/myrepos.git/blobdiff - mr

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:

improve error messages
[code/myrepos.git] / mr
diff --git a/mr b/mr
index 2932ea3a819f944ce6848df48e86e292400525dc..e1c8a063e3f626185e529a2c31b3ae1d488e77d9 100755 (executable)
--- a/mr
+++ b/mr
@@ -334,7 +334,7 @@ update = \
        elif [ -d .git ]; then \
                git pull origin master; \
        else \
        elif [ -d .git ]; then \
                git pull origin master; \
        else \
-               echo "mr update: unknown RCS"; \
+               echo "mr update: unknown repo type"; \
                exit 1; \
        fi
 status = \
                exit 1; \
        fi
 status = \
@@ -343,7 +343,7 @@ status = \
        elif [ -d .git ]; then \
                git status || true; \
        else \
        elif [ -d .git ]; then \
                git status || true; \
        else \
-               echo "mr status: unknown RCS"; \
+               echo "mr status: unknown repo type"; \
                exit 1; \
        fi
 commit = \
                exit 1; \
        fi
 commit = \
@@ -353,6 +353,6 @@ commit = \
                git commit -a "$@"; \
                git push --all; \
        else \
                git commit -a "$@"; \
                git push --all; \
        else \
-               echo "mr commit: unknown RCS"; \
+               echo "mr commit: unknown repo type"; \
                exit 1; \
        fi
                exit 1; \
        fi