diff --git a/bin/git-delta b/bin/git-delta new file mode 100755 index 0000000..5bcb743 --- /dev/null +++ b/bin/git-delta @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +branch=master +filter=ACM + +if test $# -eq 1; then + branch=$1 +else + if test $# -eq 2; then + branch=$1 + filter=$2 + fi +fi + +git diff --name-only --diff-filter=$filter $branch \ No newline at end of file diff --git a/man/git-delta.1 b/man/git-delta.1 new file mode 100644 index 0000000..cbd2314 --- /dev/null +++ b/man/git-delta.1 @@ -0,0 +1,48 @@ +.\" generated with Ronn/v0.7.3 +.\" http://github.com/rtomayko/ronn/tree/0.7.3 +. +.TH "GIT\-DELTA" "1" "February 2015" "" "" +. +.SH "NAME" +\fBgit\-delta\fR \- Lists changed files +. +.SH "SYNOPSIS" +\fBgit\-delta\fR [] [] +. +.SH "DESCRIPTION" +Lists all files that differ from a branch\. By default, lists files that have been added, copied, or modified as compared to the \fBmaster\fR branch\. +. +.SH "EXAMPLES" +Lists all modified and renamed files vs\. \fBmaster\fR: +. +.IP "" 4 +. +.nf + +$ git delta master MR +. +.fi +. +.IP "" 0 +. +.P +Lists all deleted files vs\. \fBexample\fR: +. +.IP "" 4 +. +.nf + +$ git delta example D +. +.fi +. +.IP "" 0 +. +.SH "AUTHOR" +Written by Ivan Malopinsky <\fIhello@imsky\.co\fR> +. +.SH "REPORTING BUGS" +<\fIhttps://github\.com/tj/git\-extras/issues\fR> +. +.SH "SEE ALSO" +<\fIhttps://github\.com/tj/git\-extras\fR> diff --git a/man/git-delta.html b/man/git-delta.html new file mode 100644 index 0000000..d7abbc9 --- /dev/null +++ b/man/git-delta.html @@ -0,0 +1,117 @@ + + + + + + git-delta(1) - Lists changed files + + + + +
+ + + +
    +
  1. git-delta(1)
  2. +
  3. +
  4. git-delta(1)
  5. +
+ +

NAME

+

+ git-delta - Lists changed files +

+ +

SYNOPSIS

+ +

git-delta [<branch>] [<filter>]

+ +

DESCRIPTION

+ +

Lists all files that differ from a branch. By default, lists files that have been added, copied, or modified as compared to the master branch.

+ +

EXAMPLES

+ +

Lists all modified and renamed files vs. master:

+ +
$ git delta master MR
+
+ +

Lists all deleted files vs. example:

+ +
$ git delta example D
+
+ +

AUTHOR

+ +

Written by Ivan Malopinsky <hello@imsky.co>

+ +

REPORTING BUGS

+ +

<https://github.com/tj/git-extras/issues>

+ +

SEE ALSO

+ +

<https://github.com/tj/git-extras>

+ + +
    +
  1. +
  2. February 2015
  3. +
  4. git-delta(1)
  5. +
+ +
+ + diff --git a/man/git-delta.md b/man/git-delta.md new file mode 100644 index 0000000..3315c80 --- /dev/null +++ b/man/git-delta.md @@ -0,0 +1,32 @@ +git-delta(1) -- Lists changed files +=================================== + +## SYNOPSIS + +`git-delta` [<branch>] [<filter>] + +## DESCRIPTION + +Lists all files that differ from a branch. By default, lists files that have been added, copied, or modified as compared to the `master` branch. + +## EXAMPLES + + Lists all modified and renamed files vs. `master`: + + $ git delta master MR + + Lists all deleted files vs. `example`: + + $ git delta example D + +## AUTHOR + +Written by Ivan Malopinsky <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<>