From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:24
Thiago Farina wrote:
Promote cmd_version to a builtin, by moving it to its own file
in builtin/version.c
Could you explain further? If the goal is "one command per source
file", then we already violate that in a number of places:
- "git blame" and "git pickaxe" are both cmd_blame() in
builtin/blame.c.
- "git whatchanged", "git show", "git reflog", and "git log" are
separate builtins in builtin/log.c.
- etc
What does this make easier?
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:24
Jonathan Nieder wrote:
Thiago Farina wrote:
quoted
Promote cmd_version to a builtin, by moving it to its own file
in builtin/version.c
[...]
What does this make easier?
To answer my own question: it moves the code to the builtin/
subdirectory.
$ git grep -F -e cmd_version -- builtin; # before
$ git grep -F -e cmd_version -- builtin; # after
builtin/version.c:int cmd_version(int argc, const char **argv, const char *prefix)
So for what it's worth,
Acked-by: Jonathan Nieder <redacted>