- Commit
- bd5c69cd490d0dae33f7894eb2332d536739f3f3
- Parent
- 2b71fd0634d0b58ec26657581b169e7a8410cd56
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Added the -- command
A simple configuration manager
Added the -- command
2 files changed, 23 insertions, 0 deletions
diff --git a/config b/config @@ -134,6 +134,12 @@ case "$1" in rm "$config_git_status" ;; + # Just pass the following arguments to git + --) + shift + call_git "$@" + ;; + # Just pass the arguments to git *) call_git "$@"
diff --git a/config.1 b/config.1 @@ -36,6 +36,8 @@ config \- A simple configuration manager. .sp \fBconfig\fP status .sp +\fBconfig\fP -- COMMAND [ARG...] +.sp \fBconfig\fP log .SH "DESCRIPTION" .sp @@ -70,6 +72,11 @@ List the files that are tracked by config(1) Show the working tree status .RE .sp +\fB--\fP +.RS 4 +Pass the following command directly to Git +.RE +.sp Any other command is passed directly to Git. For example, .sp .if n .RS 4 @@ -85,6 +92,16 @@ is the same as .if n .RS 4 .nf .fam C +$ config -- log +.fam +.fi +.if n .RE +.sp +which is the same as +.sp +.if n .RS 4 +.nf +.fam C $ git log .fam .fi