git_curate 0.5.1 → 0.6.0
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +13 -9
- data/VERSION +1 -1
- data/lib/git_curate/runner.rb +5 -4
- data/lib/git_curate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef956c2dcd17dbb21f74d0a9dfb0ea927cd105d3486bc7b6660d0971129acab6
|
4
|
+
data.tar.gz: 6dcd0d89349bc146d4481d735eebc1edce601cced8741649a1bd77ddb2159cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b7c5b181fef1e7f9790fe63f284590f48b07beebf1f468f8d2469056542bdeaa01cf31db1640d395b32becdd9476da656488b2cef5ca739ec16e2fba5eb31f7
|
7
|
+
data.tar.gz: f79d119a1053b75278e7a9083f92943a369b395fd49bd34b5ed0b6703be874926e72e38dcfc8d5b3884ad559d4d176f32554481a445ec481bdc8a84d47b4aa99
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -44,18 +44,22 @@ From within a git repo, run:
|
|
44
44
|
git curate
|
45
45
|
```
|
46
46
|
|
47
|
-
This will step you through your local branches one at a time,
|
48
|
-
|
49
|
-
|
47
|
+
This will step you through your local branches one at a time, outputting some information about
|
48
|
+
each, and asking you whether to keep or delete each branch.
|
49
|
+
|
50
|
+
At each branch, enter "n"—or simply press Enter—to _keep_ the branch and move to the next one;
|
51
|
+
or enter "y" to select the branch for deletion.
|
52
|
+
|
53
|
+
Entering "done" will conclude the session immediately, deleting all selected branches; and "abort" will
|
54
|
+
end the session without deleting any branches. Once the final branch has been considered,
|
55
|
+
any selected branches will be immediately deleted.
|
56
|
+
|
57
|
+
Note the branch you are currently on will not be included in the list, as `git` does not allow you to delete
|
50
58
|
the branch you're on.
|
51
59
|
|
52
60
|
If you just want to view the information about your local branches without stepping through
|
53
|
-
them interactively, enter `git branch --list` or `git branch -l`.
|
54
|
-
|
55
|
-
(Note the space after `git`—we have effectively added a subcommand to `git` just by installing
|
56
|
-
a gem. When `git_curate` is installed, an executable is created called `git-curate`.
|
57
|
-
In general, for any executable of the form _git-xyz_ in your `PATH`, `git` will automatically
|
58
|
-
recognize _xyz_ as a subcommand, and will run that executable whenever that subcommand is invoked.)
|
61
|
+
them interactively, enter `git branch --list` or `git branch -l`. Your current branch _will_
|
62
|
+
be included in this list in this case.
|
59
63
|
|
60
64
|
## Contributing
|
61
65
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/lib/git_curate/runner.rb
CHANGED
@@ -74,7 +74,7 @@ module GitCurate
|
|
74
74
|
case HighLine.ask("#{row}#{prompt}")
|
75
75
|
when "y"
|
76
76
|
branches_to_delete << proper_branch(row.to_h[:branch])
|
77
|
-
when "n"
|
77
|
+
when "n", ""
|
78
78
|
; # do nothing
|
79
79
|
when "done"
|
80
80
|
puts table.horizontal_rule
|
@@ -157,10 +157,11 @@ module GitCurate
|
|
157
157
|
|
158
158
|
def print_help
|
159
159
|
puts <<-EOL
|
160
|
-
|
160
|
+
Simply hit <Enter> to keep this branch and skip to the next one;
|
161
|
+
or enter one of the following commands:
|
161
162
|
y -- mark branch for deletion
|
162
|
-
n -- keep branch
|
163
|
-
done -- delete
|
163
|
+
n -- keep branch (equivalent to just <Enter>)
|
164
|
+
done -- delete selected branches and exit session
|
164
165
|
abort -- abort without deleting any branches
|
165
166
|
help -- print this help message
|
166
167
|
EOL
|
data/lib/git_curate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_curate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|