Skip to content

Commit dab84c5

Browse files
committed
feat: add script
1 parent 9d9276e commit dab84c5

File tree

9 files changed

+37
-24
lines changed

9 files changed

+37
-24
lines changed

git-build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
if [ -z "$1" ]
3+
then
4+
git commit -am 'build: ' -e
5+
else
6+
if [ -z "$2" ]
7+
then
8+
git commit -am "build: $1"
9+
else
10+
echo "chore($1): $2"
11+
git commit -am "build($1): $2"
12+
fi
13+
fi

git-chore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'chore: ' -e
4+
git commit -am 'chore: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "chore: $1"
8+
git commit -am "chore: $1"
99
else
1010
echo "chore($1): $2"
11-
git commit -m "chore($1): $2"
11+
git commit -am "chore($1): $2"
1212
fi
1313
fi

git-docs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'docs: ' -e
4+
git commit -am 'docs: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "docs: $1"
8+
git commit -am "docs: $1"
99
else
1010
echo "docs($1): $2"
11-
git commit -m "docs($1): $2"
11+
git commit -am "docs($1): $2"
1212
fi
1313
fi

git-feat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'feat: ' -e
4+
git commit -am 'feat: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "feat: $1"
8+
git commit -am "feat: $1"
99
else
1010
echo "feat($1): $2"
11-
git commit -m "feat($1): $2"
11+
git commit -am "feat($1): $2"
1212
fi
1313
fi

git-fix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'fix: ' -e
4+
git commit -am 'fix: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "fix: $1"
8+
git commit -am "fix: $1"
99
else
1010
echo "fix($1): $2"
11-
git commit -m "fix($1): $2"
11+
git commit -am "fix($1): $2"
1212
fi
1313
fi

git-localize

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'localize: ' -e
4+
git commit -am 'localize: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "localize: $1"
8+
git commit -am "localize: $1"
99
else
1010
echo "localize($1): $2"
11-
git commit -m "localize($1): $2"
11+
git commit -am "localize($1): $2"
1212
fi
1313
fi

git-refactor renamed to git-refact

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'refactor: ' -e
4+
git commit -am 'refact: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "refactor: $1"
8+
git commit -am "refact: $1"
99
else
1010
echo "refactor($1): $2"
11-
git commit -m "refactor($1): $2"
11+
git commit -am "refact($1): $2"
1212
fi
1313
fi

git-style

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'style: ' -e
4+
git commit -am 'style: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "style: $1"
8+
git commit -am "style: $1"
99
else
1010
echo "style($1): $2"
11-
git commit -m "style($1): $2"
11+
git commit -am "style($1): $2"
1212
fi
1313
fi

git-test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
if [ -z "$1" ]
33
then
4-
git commit -m 'test: ' -e
4+
git commit -am 'test: ' -e
55
else
66
if [ -z "$2" ]
77
then
8-
git commit -m "test: $1"
8+
git commit -am "test: $1"
99
else
1010
echo "test($1): $2"
11-
git commit -m "test($1): $2"
11+
git commit -am "test($1): $2"
1212
fi
1313
fi

0 commit comments

Comments
 (0)