git_fame 2.5.2 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d193069cf48839443661210c94fd812dd1490568
4
- data.tar.gz: e3fe0a34dacc2719ccb40cd641fbf3ec5024cfc1
3
+ metadata.gz: b116811a8adcab134d77f4a932abe46b4fd90e04
4
+ data.tar.gz: c90accdd8d6be58ab2e321f1799e0f7cb6125644
5
5
  SHA512:
6
- metadata.gz: 75453bb3d6694ccb3d934a3cb234278c6dfecbcd9f9f2550f5edce1a10c776d345d50a077cc4c33b94b5aba2c7d8ebd59c874fd2f80b642e07062daa3393bece
7
- data.tar.gz: 645e9ccb6e9bf43b8fc7d39a3ab953bc16de8c927579f7647f24db4a755ccc02613a3fc945cf9db9753e64e8cef1caf5c9d0d584c98d37db87d5619976cd1be9
6
+ metadata.gz: afc303473aee3149fed387971235d58086f957eeef8794283df6e497710a45b48f75ab90c6c211ce3add9c013632e0bfce99a411eb6272dc6157553f68da4695
7
+ data.tar.gz: f249b2dff4b90b1cd15b4af050fb372db9ae2648912b5e8b435393655bd7181c340e2b5a6655d1de035e9209bcca636ba2b4ae3e9a7ed9ac408f197288496a32
data/README.md CHANGED
@@ -47,7 +47,7 @@ From a git repository run `git fame .`
47
47
  - `git fame --hide-progressbar` Hide progressbar.
48
48
  - `git fame --whitespace` Ignore whitespace changes when blaming files. [More about git blame and whitespace](https://coderwall.com/p/x8xbnq/git-don-t-blame-people-for-changing-whitespaces-or-moving-code).
49
49
  - `git fame --repository=/path/to/repo` Git repository to be used. Default is the current folder.
50
- - `git fame --branch=master` Branch to run on. Default is what `HEAD` points to.
50
+ - `git fame --branch=HEAD` Branch to run on. Default is what `HEAD` points to.
51
51
  - `git fame --format=output` Output format. Default is `pretty`. Additional: `csv`.
52
52
  - `git fame --after=2010-01-01` Only use commits after this date. Format: yyyy-mm-dd. Note that the given date is included.
53
53
  - `git fame --before=2016-02-01` Only use commits before this date. Format: yyyy-mm-dd. Note that the given date is included.
@@ -15,7 +15,7 @@ opts = Trollop::options do
15
15
  opt :include, "Comma separated, glob file path to include. I.e path/*.rb", default: "", type: String
16
16
  opt :exclude, "Comma separated, glob file path to exclude. I.e any/**/path/*", default: "", type: String
17
17
  opt :extension, "Comma-separated list of extensions to consider, leave blank for all", default: "", type: String
18
- opt :branch, "Branch to run on", default: "master", type: String
18
+ opt :branch, "Branch to run on", default: "HEAD", type: String
19
19
  opt :format, "Format (pretty/csv)", default: "pretty", type: String
20
20
  opt :after, "Only use commmits after this date. Format: yyyy-mm-dd. Note that the given date is included", type: String
21
21
  opt :before, "Only use commits before this date. Format: yyyy-mm-dd. Note that the given date is included", type: String
@@ -55,4 +55,4 @@ rescue GitFame::Error => e
55
55
  Trollop::die e.message
56
56
  rescue Timeout::Error
57
57
  Trollop::die "Maximum timeout of #{opts[:timeout]} sec exceed. Try passing --timeout=<sec> or -1 for no timeout"
58
- end
58
+ end
@@ -343,6 +343,7 @@ module GitFame
343
343
 
344
344
  # Does @branch exist in the current git repo?
345
345
  def branch_exists?(branch)
346
+ return true if branch == "HEAD"
346
347
  execute("git #{git_directory_params} show-ref '#{branch}'", true) do |result|
347
348
  result.success?
348
349
  end
@@ -529,4 +530,4 @@ module GitFame
529
530
  memoize :start_commit_date, :files, :authors
530
531
  memoize :file_extensions, :used_files
531
532
  end
532
- end
533
+ end
@@ -1,3 +1,3 @@
1
1
  module GitFame
2
- VERSION = "2.5.2"
2
+ VERSION = "2.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_fame
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: progressbar