Retain multiple -q/-v occurrences in git pull
PATCH 1/1 Retain multiple -q/-v occurrences in git pull
To support counting -q/-v options in git pull retain them by concatenating.
--- git-pull.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
git-pull.sh +2 -2
@@ -24,9 +24,9 @@ while : do case "$1" in -q|--quiet) - verbosity=-q ;; + verbosity="$verbosity -q" ;; -v|--verbose) - verbosity=-v ;; + verbosity="$verbosity -v" ;; -n|--no-stat|--no-summary) no_stat=-n ;; --stat|--summary)
Signature · 1 line
1.6.0.2.GIT
Thanks, queued.
Quoted 3 lines · Tuncer Ayaz
To support counting -q/-v options in git pull retain them by concatenating.
[rest of message cut]
By the way, there is yet another way to invoke git fetch. It is "git remote update". Possibly it should support "-v" and "-q" options for consistency as well.
Regards,
Constantine
Quoted 9 lines · Constantine Plotnikov
Quoted 3 lines · Tuncer Ayaz
To support counting -q/-v options in git pull retain them by concatenating.
[rest of message cut]
By the way, there is yet another way to invoke git fetch. It is "git remote update". Possibly it should support "-v" and "-q" options for consistency as well.
Yes, we could add -q to builtin-remote and also make sure that it passes the already existing -v and maybe a yet-to-be-added -q to the fetch command.
I want to be first sure what the overall strategy regarding -q/-v is.
Right now we have some code which uses OPT__VERBOSE/OPT__QUIET and some new code which uses the newly-added OPT__VERBOSITY.
These are the options I can see:
1) Use the old and new macros and decide in each module which one to use
2) Get rid off OPT__VERBOSE and OPT__QUIET and use OPT__VERBOSITY only
3) Think about new ways to handle all of this. Possibly some new print_* macros?
Any opinions?
[re-sent due to propagated wrong Junio address. sorry.]
Quoted 9 lines · Constantine Plotnikov
Quoted 3 lines · Tuncer Ayaz
To support counting -q/-v options in git pull retain them by concatenating.
[rest of message cut]
By the way, there is yet another way to invoke git fetch. It is "git remote update". Possibly it should support "-v" and "-q" options for consistency as well.
Yes, we could add -q to builtin-remote and also make sure that it passes the already existing -v and maybe a yet-to-be-added -q to the fetch command.
I want to be first sure what the overall strategy regarding -q/-v is.
Right now we have some code which uses OPT__VERBOSE/OPT__QUIET and some new code which uses the newly-added OPT__VERBOSITY.
These are the options I can see:
1) Use the old and new macros and decide in each module which one to use
2) Get rid off OPT__VERBOSE and OPT__QUIET and use OPT__VERBOSITY only
3) Think about new ways to handle all of this. Possibly some new print_* macros?
Any opinions?