Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:git:gitr [2010/09/24 13:32] – created billh | docs:git:gitr [2010/10/18 15:22] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== gitr ====== | ====== gitr ====== | ||
+ | |||
+ | ===== purpose ===== | ||
gitr is a script I've developed for my project needs. | gitr is a script I've developed for my project needs. | ||
+ | * it helps me identify projects where I have commits that haven' | ||
+ | * it helps me update all my repos at once, either by fetching to review or by pulling to merge | ||
+ | ===== making it available as shell command ===== | ||
You can have this as a command available wherever you are by placing it in / | You can have this as a command available wherever you are by placing it in / | ||
+ | ===== script ===== | ||
**gitr.sh** | **gitr.sh** | ||
< | < | ||
Line 15: | Line 21: | ||
elif [ " | elif [ " | ||
gitrmode=" | gitrmode=" | ||
+ | elif [ " | ||
+ | gitrmode=" | ||
fi | fi | ||
if [ " | if [ " | ||
- | echo -e " | + | echo -e " |
exit | exit | ||
fi | fi | ||
Line 47: | Line 55: | ||
echo -e " | echo -e " | ||
+ | elif [ " | ||
+ | echo " | ||
+ | cat .git/config | ||
+ | echo -e " | ||
fi | fi | ||