From 175b432ebafee56d7f3aeaadad81b77c0e786ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 26 Jun 2012 10:59:39 +0200 Subject: [PATCH 1/2] Adding bug/refactor/feature man pages --- man/git-bug.md | 41 +++++++++++++++++++++++++++++++++++++++++ man/git-feature.md | 41 +++++++++++++++++++++++++++++++++++++++++ man/git-refactor.md | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 man/git-bug.md create mode 100644 man/git-feature.md create mode 100644 man/git-refactor.md diff --git a/man/git-bug.md b/man/git-bug.md new file mode 100644 index 0000000..81628ec --- /dev/null +++ b/man/git-bug.md @@ -0,0 +1,41 @@ +git-bug(1) -- Create bug branch +=============================== + +## SYNOPSIS + +`git-bug` [finish] <name> + +## DESCRIPTION + + Create the given bug branch + +## OPTIONS + + <finish> + + Merge and delete the bug branch. + + <name> + + The name of the bug branch. + +## EXAMPLES + + $ git bug bug-123456 + ... + $ git commit -m "Some changes" + ... + $ git checkout master + $ git bug finish bug-123456 + +## AUTHOR + +Written by Jesús Espino <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<> diff --git a/man/git-feature.md b/man/git-feature.md new file mode 100644 index 0000000..81c9a42 --- /dev/null +++ b/man/git-feature.md @@ -0,0 +1,41 @@ +git-feature(1) -- Create feature branch +======================================= + +## SYNOPSIS + +`git-feature` [finish] <name> + +## DESCRIPTION + + Create the given feature branch + +## OPTIONS + + <finish> + + Merge and delete the feature branch. + + <name> + + The name of the feature branch. + +## EXAMPLES + + $ git feature dependencies + ... + $ git commit -m "Some changes" + ... + $ git checkout master + $ git feature finish dependencies + +## AUTHOR + +Written by Jesús Espino <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<> diff --git a/man/git-refactor.md b/man/git-refactor.md new file mode 100644 index 0000000..caa9a5b --- /dev/null +++ b/man/git-refactor.md @@ -0,0 +1,41 @@ +git-refactor(1) -- Create refactor branch +========================================= + +## SYNOPSIS + +`git-refactor` [finish] <name> + +## DESCRIPTION + + Create the given refactor branch + +## OPTIONS + + <finish> + + Merge and delete the refactor branch. + + <name> + + The name of the refactor branch. + +## EXAMPLES + + $ git refactor mainlib_refactor + ... + $ git commit -m "Some changes" + ... + $ git checkout master + $ git refactor finish mainlib_refactor + +## AUTHOR + +Written by Jesús Espino <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<> From cb6c34bc2696ab8dca77cb8b281bf96d20b6fa68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 28 Jun 2012 21:15:34 +0200 Subject: [PATCH 2/2] Removing a bashism from git-effort --- bin/git-effort | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/git-effort b/bin/git-effort index e5775f3..d8ce91d 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -73,8 +73,9 @@ effort() { len=${#file} dot="." f_dot=$file - for ((i=0; i < 45-$len ;i++)); do + i=0 ; while test $i -lt 45-$len ; do f_dot=$f_dot$dot + i=$(($i+1)) done printf " \033[${color}m%s %-10d" $f_dot $commits @@ -129,4 +130,4 @@ heading effort $files | tee $tmp && sort_effort echo -show_cursor \ No newline at end of file +show_cursor