Package: git-core
Version: 1:1.5.1.4-2
Severity: wishlist
Tags: patch

Hi,

Please make "--list" the default option of git-config(1) if no other option
has been specified. As it does not (seem to) have any side effects, this is
imho a much more reasonable default than aborting.

TIA,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

diff --git a/builtin-config.c b/builtin-config.c
index 0a605e0..410f494 100644
--- a/builtin-config.c
+++ b/builtin-config.c
@@ -167,6 +167,9 @@ int cmd_config(int argc, const char **argv, const char 
*prefix)
        char* value;
        setup_git_directory_gently(&nongit);
 
+       if (1 == argc)
+               return git_config(show_all_config);
+
        while (1 < argc) {
                if (!strcmp(argv[1], "--int"))
                        type = T_INT;

Attachment: signature.asc
Description: Digital signature

Reply via email to