From 504184fce67ad6a29d640ca544a2c4ed156325ad Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Tue, 24 Jun 2025 16:55:02 +0200 Subject: [PATCH] git alias summary and test --- .github/workflows/test.yml | 2 +- dotfiles.org | 3 +++ tests/other_tests.bats | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec6b419..848ba05 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: run: | docker exec test_container sh -c "tar -xf dotfiles.tgz" docker exec test_container sh -c "./make.el" - docker exec test_container sh -c 'stow -t $HOME --dotfiles emacs bash' + docker exec test_container sh -c 'stow -t $HOME --dotfiles emacs bash git' docker exec test_container sh -c 'ls -a ~' - name: Install emacs packages diff --git a/dotfiles.org b/dotfiles.org index 2164041..565d9e2 100644 --- a/dotfiles.org +++ b/dotfiles.org @@ -1460,6 +1460,9 @@ Pretty barebones git config really # If fzf is installed, this gives a nice interactive way to delete unwanted branches. Mark with TAB before finishing with RET. rm-branches = !bash -cl 'echo $(git branch | fzf -m) | xargs git branch -D' + + # Show all aliases + alias = !bash -ci 'git config list | grep alias' #+END_SRC diff --git a/tests/other_tests.bats b/tests/other_tests.bats index 6b09118..7d9cd74 100755 --- a/tests/other_tests.bats +++ b/tests/other_tests.bats @@ -14,3 +14,7 @@ @test "fish: check syntax of .fish files" { find -XL ~/.config -name '*.fish' | xargs -n 1 fish --no-execute } + +@test "git: check git aliases have been added" { + git alias +} \ No newline at end of file