Permalink
Browse files

Delete git-diff-merge-base, since (git diff-merge-base $start $end) i…

…s equivalent to (git diff $start...$end)
  • Loading branch information...
1 parent 8722d6d commit 17ef1e1c23f587ae4724974e8e73b642c9077485 @MaxNanasy committed Feb 26, 2013
Showing with 0 additions and 36 deletions.
  1. +0 −36 git-diff-merge-base
View
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-diff_options=()
-commits=()
-
-for arg; do
- case "$arg" in
- -*)
- diff_options+=("$arg")
- ;;
- *)
- commits+=("$arg")
- ;;
- esac
-done
-
-case "${#commits[@]}" in
- 0)
- echo "Not enough arguments" >&2
- exit 1
- ;;
- 1)
- source_commit="${commits[0]}"
- destination_commit=HEAD
- ;;
- 2)
- source_commit="${commits[0]}"
- destination_commit="${commits[1]}"
- ;;
- *)
- echo "Too many arguments" >&2
- exit 1
- ;;
-esac
-
-git diff "${diff_options[@]}" "$(git merge-base "$source_commit" "$destination_commit")" "$destination_commit"

0 comments on commit 17ef1e1

Please sign in to comment.