xaizek / xscripts (License: Apache-2.0) (since 2020-06-28)
Small collection of some scripts I find useful.
Commit 9edf7501cb22c6210c87fc78be270c4dfef01e25

gt-do: sort list of actions
Author: xaizek
Author date (UTC): 2020-07-12 17:31
Committer name: xaizek
Committer date (UTC): 2020-07-12 17:31
Parent(s): ce1fa4ddabb395492270841f4a483de8e81f8651
Signing key: 99DC5E4DB05F6BE2
Tree: 256f9fb20690d172ff1752676f3e29125b99e4df
File Lines added Lines deleted
gt-do 3 1
File gt-do changed (mode: 100755) (index fe2780d..7ebc92b)
13 13 # See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
14 14 # limitations under the License. # limitations under the License.
15 15
16 # This file last updated: 12 July, 2020
17
16 18 # The script dispatches repository-specific commands that are stored under # The script dispatches repository-specific commands that are stored under
17 19 # `.git/actions`. # `.git/actions`.
18 20 # #
 
... ... if [ -d "$actions_dir" ]; then
50 52 actions=$(find "$actions_dir" -executable \ actions=$(find "$actions_dir" -executable \
51 53 -xtype f \ -xtype f \
52 54 -maxdepth 1 \ -maxdepth 1 \
53 -exec basename {} \;)
55 -exec basename {} \; | sort)
54 56 fi fi
55 57
56 58 if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/xscripts

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/xscripts

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master