repo-config: remove deprecated alias for "git config"
The release notes for Git 1.5.4 say that "git repo-config" will be removed in the next feature release. Since Git 2.0 is nearly here, remove it. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Keeping committed
Nov 10, 2013 at 15:47 UTC
eb8e7e1d9a946f439e0e35f2ada9efb434ea8b60
9 files changed
+2
-37
.gitignore
-1
@@ -131,7 +131,6 @@
131
/git-remote-testsvn
132
/git-repack
133
/git-replace
134
-/git-repo-config
134
/git-request-pull
135
/git-rerere
136
/git-reset
Documentation/git-repo-config.txt
deleted
-23
@@ -1,23 +0,0 @@
1
-git-repo-config(1)
2
-==================
3
-
4
-NAME
5
-----
6
-git-repo-config - Get and set repository or global options
7
-
8
-
9
-SYNOPSIS
10
---------
11
-[verse]
12
-'git repo-config' ...
13
-
14
-
15
-DESCRIPTION
16
------------
17
-
18
-This is a synonym for linkgit:git-config[1]. Please refer to the
19
-documentation of that command.
20
-
21
-GIT
22
----
23
-Part of the linkgit:git[1] suite
Makefile
-1
@@ -591,7 +591,6 @@ BUILT_INS += git-get-tar-commit-id$X
591
BUILT_INS += git-init$X
592
BUILT_INS += git-merge-subtree$X
593
BUILT_INS += git-peek-remote$X
594
-BUILT_INS += git-repo-config$X
594
BUILT_INS += git-show$X
595
BUILT_INS += git-stage$X
596
BUILT_INS += git-status$X
builtin.h
-1
@@ -103,7 +103,6 @@ extern int cmd_remote(int argc, const char **argv, const char *prefix);
103
extern int cmd_remote_ext(int argc, const char **argv, const char *prefix);
104
extern int cmd_remote_fd(int argc, const char **argv, const char *prefix);
105
extern int cmd_repack(int argc, const char **argv, const char *prefix);
106
-extern int cmd_repo_config(int argc, const char **argv, const char *prefix);
106
extern int cmd_rerere(int argc, const char **argv, const char *prefix);
107
extern int cmd_reset(int argc, const char **argv, const char *prefix);
108
extern int cmd_rev_list(int argc, const char **argv, const char *prefix);
builtin/config.c
-6
@@ -671,9 +671,3 @@ int cmd_config(int argc, const char **argv, const char *prefix)
671
672
return 0;
673
}
674
-
675
-int cmd_repo_config(int argc, const char **argv, const char *prefix)
676
-{
677
- fprintf(stderr, "WARNING: git repo-config is deprecated in favor of git config.\n");
678
- return cmd_config(argc, argv, prefix);
679
-}
command-list.txt
-1
@@ -102,7 +102,6 @@ git-relink ancillarymanipulators
102
git-remote ancillarymanipulators
103
git-repack ancillarymanipulators
104
git-replace ancillarymanipulators
105
-git-repo-config ancillarymanipulators deprecated
105
git-request-pull foreignscminterface
106
git-rerere ancillaryinterrogators
107
git-reset mainporcelain common
contrib/completion/git-completion.bash
-1
@@ -694,7 +694,6 @@ __git_list_porcelain_commands ()
694
read-tree) : plumbing;;
695
receive-pack) : plumbing;;
696
remote-*) : transport;;
697
- repo-config) : deprecated;;
697
rerere) : plumbing;;
698
rev-list) : plumbing;;
699
rev-parse) : plumbing;;
contrib/examples/git-whatchanged.sh
+2
-2
@@ -9,12 +9,12 @@ case "$0" in
9
*whatchanged)
10
count=
11
test -z "$diff_tree_flags" &&
12
- diff_tree_flags=$(git-repo-config --get whatchanged.difftree)
12
+ diff_tree_flags=$(git config --get whatchanged.difftree)
13
diff_tree_default_flags='-c -M --abbrev' ;;
14
*show)
15
count=-n1
16
test -z "$diff_tree_flags" &&
17
- diff_tree_flags=$(git-repo-config --get show.difftree)
17
+ diff_tree_flags=$(git config --get show.difftree)
18
diff_tree_default_flags='--cc --always' ;;
19
esac
20
test -z "$diff_tree_flags" &&
git.c
-1
@@ -421,7 +421,6 @@ static void handle_internal_command(int argc, const char **argv)
421
{ "remote-fd", cmd_remote_fd },
422
{ "repack", cmd_repack, RUN_SETUP },
423
{ "replace", cmd_replace, RUN_SETUP },
424
- { "repo-config", cmd_repo_config, RUN_SETUP_GENTLY },
424
{ "rerere", cmd_rerere, RUN_SETUP },
425
{ "reset", cmd_reset, RUN_SETUP },
426
{ "rev-list", cmd_rev_list, RUN_SETUP },