git-worklog 0.1.2 → 0.1.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/Gemfile.lock +1 -1
- data/lib/git/worklog/version.rb +1 -1
- data/lib/git/worklog.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3db475069042c06c4af6fca6cedb4733609395706f817a31e70c4f757072da
|
4
|
+
data.tar.gz: 6046b4b65e84b0d2317de71afac0cf9befd1468931fd11378170d1bdb16cb7df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef7455476c6782a7858ada856c4fccafcb8499c1c112835faa31d1a1483561cefaef8357c5bc87bac19f3b5c33fa8764c3a3af4d29adece6623be2276a83568
|
7
|
+
data.tar.gz: f5edc2c6646833edf6945a56747d445a9276133b766027d6c40eb6392e38f8d8dcb11442a06cfb44f8e9ac0af4ea58b4eae0efae694b1506a37201051d63e4b7
|
data/Gemfile.lock
CHANGED
data/lib/git/worklog/version.rb
CHANGED
data/lib/git/worklog.rb
CHANGED
@@ -53,18 +53,18 @@ module Worklog
|
|
53
53
|
end
|
54
54
|
|
55
55
|
desc "show", "Shows worklog from current repository/directory (Default: Last 7 days)"
|
56
|
-
method_option :days, :aliases => "-d", :desc => "Specify number of days"
|
56
|
+
method_option :days, :aliases => "-d", :desc => "Specify number of days"
|
57
57
|
method_option :weeks, :aliases => "-w", :desc => "Specify number of weeks"
|
58
58
|
method_option :user, :aliases => "-u", :desc => "Specify Author name"
|
59
59
|
method_option :path, :aliases => "-p", :desc => "Specify path from where to check for the repos"
|
60
60
|
method_option :format, :aliases => "-f", :desc => "Oneline, short, medium, full, fuller and raw"
|
61
|
-
method_option :reverse, :aliases => "-r", :desc => "Show output of logs in reverse"
|
61
|
+
method_option :reverse, :aliases => "-r", :desc => "Show output of logs in reverse"
|
62
62
|
method_option :type, :aliases => "-t", :desc => "Merge Commits, Branch Commits"
|
63
|
-
method_option :repositories, :aliases => "-repos", :desc => "Show commits only from these repositories"
|
63
|
+
method_option :repositories, :aliases => "-repos", :desc => "Show commits only from these repositories"
|
64
64
|
|
65
65
|
def show
|
66
66
|
commits = {}
|
67
|
-
git_command = "git --no-pager log --pretty=oneline --date=short --since=#{options[:days] || 7}.days --author=\"#{user(options[:user])}\" --all"
|
67
|
+
git_command = "git --no-pager log --exclude=refs/stash --pretty=oneline --date=short --since=#{options[:days] || 7}.days --author=\"#{user(options[:user])}\" --all"
|
68
68
|
repos.each do |repo|
|
69
69
|
repo_name = repo.split("/").last
|
70
70
|
output = `cd #{repo} && #{git_command}`
|