Skip to content

Commit

Permalink
git-helper: add support for --no-path
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Feb 3, 2025
1 parent 109a32d commit 2d1736e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/git-helper
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function git_helper() (
OPTIONS:
--path=<path>
Instead of the current working directory, use this path as the git repository.
--no-path
Use a temporary directory as the container for the git repository.
--verify
Verify the <path> contains an initialised git repository before proceeding with the <action>.
Expand Down Expand Up @@ -73,7 +74,7 @@ function git_helper() (
current exit code 0
updated exit code 0
umt | upstream-modification-times
upstream-modification-times | umt
Update the modification times of cloned files to that of their commits, rather than the time of cloning.
verify
Expand All @@ -96,6 +97,7 @@ function git_helper() (
case "$item" in
'--help' | '-h') help ;;
'--path='*) option_path="${item#*=}" ;;
'--no-path') option_path="$(fs-temp --directory='git-helper' --directory --touch)" ;;
'--no-verify'* | '--verify'*)
option_verify="$(get-flag-value --affirmative --fallback="$option_verify" -- "$item")"
;;
Expand Down

0 comments on commit 2d1736e

Please sign in to comment.