]>
gitweb.pimeys.fr Git - config-20-100.git/blob - rc/extra/01_vcs_functions
2 # Fichier contenant des fonctions "pratiques" de manipulation de
3 # VCS comme git ou cvs ou autre
8 cvs add $
* && cvs com
-m 'initial checkin' $
*
13 cvs
diff -N $
* |
& $PAGER
36 #f5# Find all files in \$PATH with setuid bit set
37 suidfind
() { ls -latg $path |
grep '^...s' }
39 #f5# Get specific git commitdiff
42 if [[ -z $GITTREE ]] ; then
43 GITTREE
='linux/kernel/git/torvalds/linux-2.6.git'
45 if ! [[ -z $1 ]] ; then
46 ${=BROWSER} "http://kernel.org/git/?p=$GITTREE;a=commitdiff;h=$1"
48 echo "Usage: git-get-diff <commit>"
52 #f5# Get specific git commit
55 if [[ -z $GITTREE ]] ; then
56 GITTREE
='linux/kernel/git/torvalds/linux-2.6.git'
58 if ! [[ -z $1 ]] ; then
59 ${=BROWSER} "http://kernel.org/git/?p=$GITTREE;a=commit;h=$1"
61 echo "Usage: git-get-commit <commit>"
65 #f5# Get specific git diff
66 git-get-plaindiff
() {
68 if [[ -z $GITTREE ]] ; then
69 GITTREE
='linux/kernel/git/torvalds/linux-2.6.git'
72 echo 'Usage: git-get-plaindiff '
74 echo -n "Downloading $1.diff ... "
75 # avoid "generating ..." stuff from kernel.org server:
76 wget
--quiet "http://kernel.org/git/?p=$GITTREE;a=commitdiff_plain;h=$1" -O /dev
/null
77 wget
--quiet "http://kernel.org/git/?p=$GITTREE;a=commitdiff_plain;h=$1" -O $1.
diff \
78 && echo done ||
echo failed