git_curate 0.5.1 → 0.6.0

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
  SHA256:
3
- metadata.gz: df823d05987433aa12d7ce81b00455c1b4e3940a4817d0d3cc1ff7379f221126
4
- data.tar.gz: 4ba8cd121ce30faf4debbfe48b448d211fe018f19a05898b9a0af24540f161a3
3
+ metadata.gz: ef956c2dcd17dbb21f74d0a9dfb0ea927cd105d3486bc7b6660d0971129acab6
4
+ data.tar.gz: 6dcd0d89349bc146d4481d735eebc1edce601cced8741649a1bd77ddb2159cc7
5
5
  SHA512:
6
- metadata.gz: ac08472f3b2f26f27bd0f8723652fd8f8ccfb2715827db7a4b5c8e32d42383e1bdb095b34a84c4fd6da4f403e0b5ee2b49fee1f1b26302294d35b990480e3f65
7
- data.tar.gz: 661ca5b4287cfa65148045b2917eaa752d69d088ae2ba454a656850c3ce44e94960c9d373c6d7d49b3b3cc229f305e81cddb47d0ee86fb45f09a82c2eb8d768b
6
+ metadata.gz: 9b7c5b181fef1e7f9790fe63f284590f48b07beebf1f468f8d2469056542bdeaa01cf31db1640d395b32becdd9476da656488b2cef5ca739ec16e2fba5eb31f7
7
+ data.tar.gz: f79d119a1053b75278e7a9083f92943a369b395fd49bd34b5ed0b6703be874926e72e38dcfc8d5b3884ad559d4d176f32554481a445ec481bdc8a84d47b4aa99
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ### v0.6.0
4
+
5
+ * Simply hitting Enter now lets you skip a branch without marking it for deletion;
6
+ no need to type "n".
7
+
3
8
  ### v0.5.1
4
9
 
5
10
  * Fix upstream branch not showing for current branch in `git curate -l`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_curate (0.5.1)
4
+ git_curate (0.6.0)
5
5
  highline (= 2.0.2)
6
6
  tabulo (= 1.3.0)
7
7
  tty-screen (= 0.6.5)
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, asking you whether to keep or
48
- delete each branch in what should be a fairly self-explanatory fashion. Note the branch
49
- you are currently on will not be included in the list, as `git` does not allow you to delete
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.5.1
1
+ 0.6.0
@@ -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
- Please enter one of:
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 marked branches and exit session
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
@@ -1,3 +1,3 @@
1
1
  module GitCurate
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.1
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-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline