Merge branch 'jc/you-still-use-whatchanged'
"git whatchanged" that is longer to type than "git log --raw" which is its modern rough equivalent has outlived its usefulness more than 10 years ago. Plan to deprecate and remove it. * jc/you-still-use-whatchanged: whatschanged: list it in BreakingChanges document whatchanged: remove when built with WITH_BREAKING_CHANGES whatchanged: require --i-still-use-this tests: prepare for a world without whatchanged doc: prepare for a world without whatchanged you-still-use-that??: help deprecating commands for removal
This commit is contained in:
@@ -183,6 +183,14 @@ These features will be removed.
|
||||
timeframe, in preference to its synonym "--annotate-stdin". Git 3.0
|
||||
removes the support for "--stdin" altogether.
|
||||
|
||||
* The git-whatchanged(1) command has outlived its usefulness more than
|
||||
10 years ago, and takes more keystrokes to type than its rough
|
||||
equivalent `git log --raw`. We have nominated the command for
|
||||
removal, have changed the command to refuse to work unless the
|
||||
`--i-still-use-this` option is given, and asked the users to report
|
||||
when they do so. So far there hasn't been a single complaint.
|
||||
+
|
||||
The command will be removed.
|
||||
|
||||
== Superseded features that will not be deprecated
|
||||
|
||||
|
||||
@@ -510,7 +510,12 @@ lint-docs-meson:
|
||||
awk "/^manpages = {$$/ {flag=1 ; next } /^}$$/ { flag=0 } flag { gsub(/^ \047/, \"\"); gsub(/\047 : [157],\$$/, \"\"); print }" meson.build | \
|
||||
grep -v -e '#' -e '^$$' | \
|
||||
sort >tmp-meson-diff/meson.adoc && \
|
||||
ls git*.adoc scalar.adoc | grep -v -e git-bisect-lk2009.adoc -e git-pack-redundant.adoc -e git-tools.adoc >tmp-meson-diff/actual.adoc && \
|
||||
ls git*.adoc scalar.adoc | \
|
||||
grep -v -e git-bisect-lk2009.adoc \
|
||||
-e git-pack-redundant.adoc \
|
||||
-e git-tools.adoc \
|
||||
-e git-whatchanged.adoc \
|
||||
>tmp-meson-diff/actual.adoc && \
|
||||
if ! cmp tmp-meson-diff/meson.adoc tmp-meson-diff/actual.adoc; then \
|
||||
echo "Meson man pages differ from actual man pages:"; \
|
||||
diff -u tmp-meson-diff/meson.adoc tmp-meson-diff/actual.adoc; \
|
||||
|
||||
@@ -83,13 +83,13 @@ int cmd_walken(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
----
|
||||
|
||||
Also add the relevant line in `builtin.h` near `cmd_whatchanged()`:
|
||||
Also add the relevant line in `builtin.h` near `cmd_version()`:
|
||||
|
||||
----
|
||||
int cmd_walken(int argc, const char **argv, const char *prefix, struct repository *repo);
|
||||
----
|
||||
|
||||
Include the command in `git.c` in `commands[]` near the entry for `whatchanged`,
|
||||
Include the command in `git.c` in `commands[]` near the entry for `version`,
|
||||
maintaining alphabetical ordering:
|
||||
|
||||
----
|
||||
|
||||
@@ -68,9 +68,15 @@ format.encodeEmailHeaders::
|
||||
Defaults to true.
|
||||
|
||||
format.pretty::
|
||||
ifndef::with-breaking-changes[]
|
||||
The default pretty format for log/show/whatchanged command.
|
||||
See linkgit:git-log[1], linkgit:git-show[1],
|
||||
linkgit:git-whatchanged[1].
|
||||
endif::with-breaking-changes[]
|
||||
ifdef::with-breaking-changes[]
|
||||
The default pretty format for log/show command.
|
||||
See linkgit:git-log[1], linkgit:git-show[1].
|
||||
endif::with-breaking-changes[]
|
||||
|
||||
format.thread::
|
||||
The default threading style for 'git format-patch'. Can be
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
log.abbrevCommit::
|
||||
If true, makes linkgit:git-log[1], linkgit:git-show[1], and
|
||||
linkgit:git-whatchanged[1] assume `--abbrev-commit`. You may
|
||||
If true, makes
|
||||
ifndef::with-breaking-changes[]
|
||||
linkgit:git-log[1], linkgit:git-show[1], and
|
||||
linkgit:git-whatchanged[1]
|
||||
endif::with-breaking-changes[]
|
||||
ifdef::with-breaking-changes[]
|
||||
linkgit:git-log[1] and linkgit:git-show[1]
|
||||
endif::with-breaking-changes[]
|
||||
assume `--abbrev-commit`. You may
|
||||
override this option with `--no-abbrev-commit`.
|
||||
|
||||
log.date::
|
||||
|
||||
@@ -8,8 +8,14 @@ git-whatchanged - Show logs with differences each commit introduces
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
[verse]
|
||||
'git whatchanged' <option>...
|
||||
[synopsis]
|
||||
git whatchanged <option>...
|
||||
|
||||
WARNING
|
||||
-------
|
||||
`git whatchanged` has been deprecated and is scheduled for removal in
|
||||
a future version of Git, as it is merely `git log` with different
|
||||
default; `whatchanged` is not even shorter to type than `log --raw`.
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
@@ -158,7 +158,6 @@ manpages = {
|
||||
'git-verify-tag.adoc' : 1,
|
||||
'git-version.adoc' : 1,
|
||||
'git-web--browse.adoc' : 1,
|
||||
'git-whatchanged.adoc' : 1,
|
||||
'git-worktree.adoc' : 1,
|
||||
'git-write-tree.adoc' : 1,
|
||||
'git.adoc' : 1,
|
||||
@@ -207,6 +206,7 @@ manpages = {
|
||||
|
||||
manpages_breaking_changes = {
|
||||
'git-pack-redundant.adoc' : 1,
|
||||
'git-whatchanged.adoc' : 1,
|
||||
}
|
||||
|
||||
if not get_option('breaking_changes')
|
||||
|
||||
@@ -62,7 +62,12 @@ ifndef::git-rev-list[]
|
||||
--notes[=<ref>]::
|
||||
Show the notes (see linkgit:git-notes[1]) that annotate the
|
||||
commit, when showing the commit log message. This is the default
|
||||
ifndef::with-breaking-changes[]
|
||||
for `git log`, `git show` and `git whatchanged` commands when
|
||||
endif::with-breaking-changes[]
|
||||
ifdef::with-breaking-changes[]
|
||||
for `git log` and `git show` commands when
|
||||
endif::with-breaking-changes[]
|
||||
there is no `--pretty`, `--format`, or `--oneline` option given
|
||||
on the command line.
|
||||
+
|
||||
|
||||
@@ -1100,8 +1100,13 @@ Commit Formatting
|
||||
|
||||
ifdef::git-rev-list[]
|
||||
Using these options, linkgit:git-rev-list[1] will act similar to the
|
||||
more specialized family of commit log tools: linkgit:git-log[1],
|
||||
linkgit:git-show[1], and linkgit:git-whatchanged[1]
|
||||
more specialized family of commit log tools:
|
||||
ifndef::with-breaking-changes[]
|
||||
linkgit:git-log[1], linkgit:git-show[1], and linkgit:git-whatchanged[1].
|
||||
endif::with-breaking-changes[]
|
||||
ifdef::with-breaking-changes[]
|
||||
linkgit:git-log[1] and linkgit:git-show[1].
|
||||
endif::with-breaking-changes[]
|
||||
endif::git-rev-list[]
|
||||
|
||||
include::pretty-options.adoc[]
|
||||
|
||||
@@ -440,7 +440,7 @@ understanding these differences can be beneficial.
|
||||
* blame (only matters when one or more -C flags are passed)
|
||||
* and annotate
|
||||
* log
|
||||
* whatchanged
|
||||
* whatchanged (may not exist anymore)
|
||||
* ls-files
|
||||
* diff-index
|
||||
* diff-tree
|
||||
|
||||
@@ -4240,7 +4240,7 @@ command `git`. The source side of a builtin is
|
||||
- an entry in `BUILTIN_OBJECTS` in the `Makefile`.
|
||||
|
||||
Sometimes, more than one builtin is contained in one source file. For
|
||||
example, `cmd_whatchanged()` and `cmd_log()` both reside in `builtin/log.c`,
|
||||
example, `cmd_show()` and `cmd_log()` both reside in `builtin/log.c`,
|
||||
since they share quite a bit of code. In that case, the commands which are
|
||||
_not_ named like the `.c` file in which they live have to be listed in
|
||||
`BUILT_INS` in the `Makefile`.
|
||||
|
||||
Reference in New Issue
Block a user