summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-06-19 08:35:29 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-06-19 08:35:29 +0200
commit888eabc93ad92e53c075d57e53d551d0ed020db1 (patch)
tree69249f0e90e26919bb2572f8e8087517e0069cea
parent2e10b500fed3b8ff3fa3b08c4d0ab7770a8843a4 (diff)
downloadag-888eabc93ad92e53c075d57e53d551d0ed020db1.tar.gz
ag-888eabc93ad92e53c075d57e53d551d0ed020db1.tar.bz2
Minor updates
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rwxr-xr-xag-branch-cur5
-rwxr-xr-xag-branch-ls12
-rwxr-xr-xag-commit2
3 files changed, 13 insertions, 6 deletions
diff --git a/ag-branch-cur b/ag-branch-cur
index 3827963..f573267 100755
--- a/ag-branch-cur
+++ b/ag-branch-cur
@@ -14,9 +14,4 @@ else
exit 1
fi
-if [ ! -f .git/$HEAD ]; then
- echo HEAD link appears to not exist
- exit 1
-fi
-
basename $HEAD
diff --git a/ag-branch-ls b/ag-branch-ls
index 966a1b0..9e34a27 100755
--- a/ag-branch-ls
+++ b/ag-branch-ls
@@ -7,6 +7,7 @@ fi
HEADS=$(cd .git/refs/heads && ls)
+echo "Local branches:"
for i in $HEADS; do
if [ $i == "master" ]; then
continue
@@ -15,3 +16,14 @@ for i in $HEADS; do
SHA=$(cat .git/refs/heads/$i)
echo "$SHA $i"
done
+
+HEADS=$(cd .git/refs/remotes/origin && ls)
+echo "Remote branches:"
+for i in $HEADS; do
+ if [ $i == "master" -o $i == "HEAD" ]; then
+ continue
+ fi
+
+ SHA=$(cat .git/refs/remotes/origin/$i)
+ echo "$SHA $i"
+done
diff --git a/ag-commit b/ag-commit
index 2f7c2ba..be27105 100755
--- a/ag-commit
+++ b/ag-commit
@@ -55,7 +55,7 @@ if [ -f changelog.txt ]; then
git commit -m changelog.txt
rm -rf changelog.txt
else
- git commit -s "Jens Axboe <jens.axboe@oracle.com"
+ git commit -s "Jens Axboe <jens.axboe@oracle.com>"
fi
unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL