Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 15 lines (12 sloc) 0.458 kb
eb800b7 Adding git-diff script to exclude auto-generated resources from diff, ad...
Cameron Dutro authored
1 #! /usr/bin/env ruby
2
3 excl = [
4 "resources/collation",
5 "resources/custom",
6 "resources/locales",
7 "resources/shared",
8 "resources/unicode_data",
9 ].map { |pattern| "grep -v #{pattern}" }
10
11 files = `git diff --diff-filter=ACMRTUXB --name-only master . | #{excl.join(" | ")}`.split("\n")
12 `git diff master #{files.join(" ")} > /tmp/twitter-cldr-rb.diff`
13 `git diff --diff-filter=D master . >> /tmp/twitter-cldr-rb.diff`
14 exec "less /tmp/twitter-cldr-rb.diff"
Something went wrong with that request. Please try again.