summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README3
-rwxr-xr-xpassword-store.sh13
2 files changed, 15 insertions, 1 deletions
diff --git a/README b/README
index 0478bbf..7dc8a40 100644
--- a/README
+++ b/README
@@ -31,6 +31,9 @@ Usage:
If the password store is a git repository, push the latest changes.
pass pull
If the password store is a git repository, pull the latest changes.
+ pass git git-command-args...
+ If the password store is a git repository, execute a git command
+ specified by git-command-args.
pass help
Show this text.
diff --git a/password-store.sh b/password-store.sh
index 8d7f853..3ec5b37 100755
--- a/password-store.sh
+++ b/password-store.sh
@@ -34,13 +34,16 @@ Usage:
If the password store is a git repository, push the latest changes.
$program pull
If the password store is a git repository, pull the latest changes.
+ $program git git-command-args...
+ If the password store is a git repository, execute a git command
+ specified by git-command-args.
$program help
Show this text.
_EOF
}
isCommand() {
case "$1" in
- init|ls|show|insert|generate|remove|rm|delete|push|pull|help) return 0 ;;
+ init|ls|show|insert|generate|remove|rm|delete|push|pull|git|help) return 0 ;;
*) return 1 ;;
esac
}
@@ -223,6 +226,14 @@ case "$command" in
exit 1
fi
;;
+ git)
+ if [[ -d $GIT ]]; then
+ exec git $@
+ else
+ echo "Error: the password store is not a git repository."
+ exit 1
+ fi
+ ;;
*)
usage
exit 1
'>+7 2020-05-07Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12