Skip to content
Snippets Groups Projects
Commit 7656933d authored by Simona Vetter's avatar Simona Vetter
Browse files

dim: Add range-diff convenience wrapper


range-diff is awesome, but the interface is a bit silly. Add a bunch
of shortcuts, inspired by what git diff does.

v2: Add it to the developer commmands list. With this dim range-diff
is useable on any git repo, not just a dim managed one.

v3: Comments from Lucas:
- Forward additional arguments. There's no --no-patch in upstream git,
  but I tested this with --no-color and --no-dual-color. Slightly a
  hack since detecting whether it's a branch or not became even more
  fun, but works in all cases.
- Remove impossible "$branch" == "" check - I added a default.

v4: Update docs.

Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
parent 037d0a5e
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment