diff --git a/completers/git_completer/cmd/common/diff.go b/completers/git_completer/cmd/common/diff.go index 8c20ca0f9f..b19ed8e422 100644 --- a/completers/git_completer/cmd/common/diff.go +++ b/completers/git_completer/cmd/common/diff.go @@ -78,7 +78,7 @@ func AddDiffFlags(cmd *cobra.Command) { cmd.Flags().Bool("pickaxe-all", false, "When -S or -G finds a change, show all the changes in that changeset") cmd.Flags().Bool("pickaxe-regex", false, "Treat the given to -S as an extended POSIX regular expression to match") cmd.Flags().Bool("raw", false, "Generate the diff in raw format") - cmd.Flags().String("relative,", "", "exclude changes outside the directory") + cmd.Flags().String("relative", "", "exclude changes outside the directory") cmd.Flags().Bool("rename-empty", false, "Whether to use empty blobs as rename source") cmd.Flags().Bool("shortstat", false, "Output only the last line of the --stat format") cmd.Flags().String("src-prefix", "", "Show the given source prefix instead of \"a/\"") diff --git a/completers/git_completer/cmd/diffFiles.go b/completers/git_completer/cmd/diffFiles.go index bdcabe814e..0492be21b2 100644 --- a/completers/git_completer/cmd/diffFiles.go +++ b/completers/git_completer/cmd/diffFiles.go @@ -29,7 +29,6 @@ func init() { diffFilesCmd.Flags().Bool("no-relative", false, "Do not show relative pathnames") diffFilesCmd.Flags().Bool("no-textconv", false, "Disallow external text conversion filters to be run when comparing binary files") diffFilesCmd.Flags().BoolS("q", "q", false, "Remain silent even for nonexistent files") - diffFilesCmd.Flags().String("relative", "", "Show relative pathnames") diffFilesCmd.Flags().String("rotate-to", "", "Move the files before the named to the end") diffFilesCmd.Flags().String("skip-to", "", "Discard the files before the named from the output") diffFilesCmd.Flags().Bool("use-mailmap", false, "Use mailmap file to map author and committer name") diff --git a/completers/git_completer/cmd/log.go b/completers/git_completer/cmd/log.go index d6bec59259..16f54bccb9 100644 --- a/completers/git_completer/cmd/log.go +++ b/completers/git_completer/cmd/log.go @@ -48,7 +48,6 @@ func init() { logCmd.Flags().Bool("no-textconv", false, "Disallow external text conversion filters to be run when comparing binary files.") logCmd.Flags().Bool("no-use-mailmap", false, "Do not use mailmap file to map author and committer names and email addresses to canonical real names and email addresses.") logCmd.Flags().String("notes", "", "Show the notes that annotate the commit") - logCmd.Flags().String("relative", "", "When run from a subdirectory of the project, it can be told to exclude changes outside the directory and show pathnames relative to it with this option.") logCmd.Flags().Bool("reverse", false, "Output the commits chosen to be shown (see Commit Limiting section above) in reverse order. Cannot be combined with --walk-reflogs.") logCmd.Flags().String("rotate-to", "", "Discard the files before the named from the output (i.e. skip to), or move them to the end of the output (i.e. rotate to).") logCmd.Flags().Bool("show-pulls", false, "Include all commits from the default mode, but also any merge commits that are not TREESAME to the first parent but are TREESAME to a later parent.")