git_fame 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/git-fame +2 -2
- data/lib/git_fame/base.rb +2 -1
- data/lib/git_fame/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b116811a8adcab134d77f4a932abe46b4fd90e04
|
4
|
+
data.tar.gz: c90accdd8d6be58ab2e321f1799e0f7cb6125644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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=
|
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.
|
data/bin/git-fame
CHANGED
@@ -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: "
|
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
|
data/lib/git_fame/base.rb
CHANGED
@@ -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
|
data/lib/git_fame/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: progressbar
|