@matheusbsbs / matheus-bagliano / commits / 4a5856cb24
Fork 0

bash: update 'git svn' options

'git svn' got some new subcommands and otions in the last couple of months. This patch adds completion support for them. In particular: * 'fetch', 'clone', etc.: '--ignore-paths=' * 'init' and 'clone': '--prefix=', '--use-log-author', '--add-author-from' * 'dcommit': '--commit-url', '--revision' * 'log': '--color' * 'rebase': '--dry-run' * 'branch', 'tag', 'blame', 'migrate' subcommands and their options Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Feb 14, 2009 at 17:21 UTC 4a5856cb249579845e24713225bc1749a9b20482
1 file changed +25 -6
contrib/completion/git-completion.bash
+25 -6
@@ -1600,7 +1600,8 @@ _git_svn ()
1600 local subcommands="
1601 init fetch clone rebase dcommit log find-rev
1602 set-tree commit-diff info create-ignore propget
1603 - proplist show-ignore show-externals
1603 + proplist show-ignore show-externals branch tag blame
1604 + migrate
1605 "
1606 local subcommand="$(__git_find_subcommand "$subcommands")"
1607 if [ -z "$subcommand" ]; then
@@ -1611,13 +1612,15 @@ _git_svn ()
1612 --follow-parent --authors-file= --repack=
1613 --no-metadata --use-svm-props --use-svnsync-props
1614 --log-window-size= --no-checkout --quiet
1614 - --repack-flags --use-log-author --localtime $remote_opts
1615 + --repack-flags --use-log-author --localtime
1616 + --ignore-paths= $remote_opts
1617 "
1618 local init_opts="
1619 --template= --shared= --trunk= --tags=
1620 --branches= --stdlayout --minimize-url
1621 --no-metadata --use-svm-props --use-svnsync-props
1620 - --rewrite-root= $remote_opts
1622 + --rewrite-root= --prefix= --use-log-author
1623 + --add-author-from $remote_opts
1624 "
1625 local cmt_opts="
1626 --edit --rmdir --find-copies-harder --copy-similarity=
@@ -1637,7 +1640,8 @@ _git_svn ()
1640 dcommit,--*)
1641 __gitcomp "
1642 --merge --strategy= --verbose --dry-run
1640 - --fetch-all --no-rebase $cmt_opts $fc_opts
1643 + --fetch-all --no-rebase --commit-url
1644 + --revision $cmt_opts $fc_opts
1645 "
1646 ;;
1647 set-tree,--*)
@@ -1651,13 +1655,13 @@ _git_svn ()
1655 __gitcomp "
1656 --limit= --revision= --verbose --incremental
1657 --oneline --show-commit --non-recursive
1654 - --authors-file=
1658 + --authors-file= --color
1659 "
1660 ;;
1661 rebase,--*)
1662 __gitcomp "
1663 --merge --verbose --strategy= --local
1660 - --fetch-all $fc_opts
1664 + --fetch-all --dry-run $fc_opts
1665 "
1666 ;;
1667 commit-diff,--*)
@@ -1666,6 +1670,21 @@ _git_svn ()
1670 info,--*)
1671 __gitcomp "--url"
1672 ;;
1673 + branch,--*)
1674 + __gitcomp "--dry-run --message --tag"
1675 + ;;
1676 + tag,--*)
1677 + __gitcomp "--dry-run --message"
1678 + ;;
1679 + blame,--*)
1680 + __gitcomp "--git-format"
1681 + ;;
1682 + migrate,--*)
1683 + __gitcomp "
1684 + --config-dir= --ignore-paths= --minimize
1685 + --no-auth-cache --username=
1686 + "
1687 + ;;
1688 *)
1689 COMPREPLY=()
1690 ;;