Permalink
Browse files

comments and usage notes

  • Loading branch information...
1 parent 340a471 commit 377402d8599ad3321eac61e00ba9097fdc07958a @mjdominus committed Aug 10, 2011
Showing with 35 additions and 0 deletions.
  1. +2 −0 git-command
  2. +10 −0 git-fetchs
  3. +6 −0 git-re-edit
  4. +17 −0 git-vee
View
@@ -1 +1,3 @@
+# symlink or hardlink "foo" to "git-command" to make "foo" an alias
+# for "git-foo"
exec git "$(basename "$0")" "$@"
View
@@ -1,4 +1,14 @@
#!/usr/bin/perl
+#
+# This fetches all refs from all the remotes, that you have fetched
+# from before. It is different from "git fetch --all" because that
+# will also fetch from remotes that you have *not* fetched from before.
+#
+# I use this because our repo setup script creates one remote for each
+# of our employees, including those that are not expected to commit to
+# the repo, and some who do not work here any more but for whom we may
+# still retain old repos. I do not want to try pointlessly to fetch
+# from these remotes every time I update.
use Getopt::Std;
getopts('v', \my %opt) or die;
View
@@ -1,6 +1,12 @@
#!/usr/bin/perl
#
# Still fails when files may contain spaces
+#
+# Run the editor on all the files that have been modified from the
+# current index. Useful to resume work when you left the working tree
+# dirty. Useful following a "git reset HEAD^" to continue work on the
+# stuff you were working on before. Useful following a failed merge.
+#
chomp(my @changed = qx{git status --porcelain});
exit 1 unless $? == 0;
View
17 git-vee
@@ -1,4 +1,21 @@
#!/bin/sh
+#
+# This prepares a brief summary of how your current branch has diverged
+# from a corresponding remote branch. A typical use is:
+# git vee origin
+#
+# if the currently-checked-out branch is master, this will compare
+# master and origin/master.
+#
+# It uses git log --cherry-mark, so you need at least git 1.4.7.1.
+# If --cherry-mark doesn't work, delete that option from this script.
+#
+# Usage:
+# git vee remote # compare current head branch and its analog on the remote
+# git vee remote branch # compare branch and remote/branch
+# git vee branch # compare HEAD and branch
+# git vee branch1 branch2 # compare branch1 and branch2
+#
DIE=false;

0 comments on commit 377402d

Please sign in to comment.