forked from dandavison/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize subcommands: rg, git-show (etc.), diff
The possible command line now is: delta <delta-args> [SUBCMD <subcmd-args>] If the entire command line fails to parse because SUBCMD is unknown, then try (until the next arg fails) parsing <delta-args> only, and then parse and call SUBCMD.., then pipe input to delta. The generic subcommands also take precedence over the diff/git-diff (delta a b, where e.g. a=show and b=HEAD), and any diff call gets converted into a subcommand first. Available are: delta rg .. => rg --json .. | delta delta show .. => git <color-on> show .. | delta delta a b .. => git diff a b .. | delta And various other git-CMDS: log grep blame. The piping is not done by the shell, but delta, so the subcommands now are child processes of delta.
- Loading branch information
Showing
6 changed files
with
362 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.