git-utils 2.2.0 → 2.3.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/Gemfile.lock +1 -1
- data/README.md +5 -4
- data/bin/git-cleanup +1 -1
- data/bin/git-files-changed +4 -0
- data/lib/git-utils/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11c61cc784f39f3e593eb7c122c6c4cd1af95dbf6b15cf1c4dde306dbbc50ff0
|
4
|
+
data.tar.gz: 2a126aef4e73a643dc75a4c9e462e750961e2a3d019886e29ab080682c7502db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56cdcc8662127380384ba7e757dda60fca3ba57fd784d2ce50b4bad486aaa3ed0d3c433fb82e8ec70bdbb86e64f263b3fde3e35fa144acb4fa79033a4193d4c6
|
7
|
+
data.tar.gz: ecb0e9d79682d2500769ba85878270675c4122e31784fd72deeffeb7846fae224ebdea63999595ea35fcb6e1d3f0e7013d5795f529e08c1e319f7340e2aa81f2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,11 +8,16 @@ This repo contains some Git utility scripts. The highlights are `git open`, `git
|
|
8
8
|
|
9
9
|
See below for more details on the commands defined by `git-utils`. To learn more about how to use Git itself, see the tutorial book and online course [*Learn Enough Git to Be Dangerous*](https://www.learnenough.com/git).
|
10
10
|
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
gem install git-utils
|
14
|
+
|
11
15
|
## Commands
|
12
16
|
|
13
17
|
* `git amend`: alias for `git commit --amend`
|
14
18
|
* `git bump`: makes a commit with the message `"Bump version number"`
|
15
19
|
* `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `main`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`). Pass the `-r` option to delete remote merged branches.
|
20
|
+
* `git files-changed`: alias for `git log --name-only`, showing only the commit message and which files changed (no diffs).
|
16
21
|
* `git merge-into-branch [branch]`: merges current branch into given branch (defaults to repo's default branch)
|
17
22
|
* `git minor`: makes a commit with the message `"Make minor changes"`
|
18
23
|
* `git open`: opens the remote page for the repo (macOS & Linux)
|
@@ -83,7 +88,3 @@ The main purpose of `git sync` is to prepare the current branch for merging with
|
|
83
88
|
$ git merge origin/master
|
84
89
|
|
85
90
|
but I don’t like having `master` and `origin/master` be different since that means you have to remember to run `git pull` on `master` some time down the line.)
|
86
|
-
|
87
|
-
## Installation
|
88
|
-
|
89
|
-
gem install git-utils
|
data/bin/git-cleanup
CHANGED
@@ -23,7 +23,7 @@ if File.exist?(preserved_file)
|
|
23
23
|
preserved += '|' + additional_preserved.join('|')
|
24
24
|
end
|
25
25
|
end
|
26
|
-
cmd = %(git branch --merged | grep -v "\*" | egrep -v "(#{preserved})" | )
|
26
|
+
cmd = %(git branch --merged | grep -v "\*" | egrep -v "(#{preserved}|HEAD)" | )
|
27
27
|
if options[:remote]
|
28
28
|
cmd += "sed -e 's/origin\\//:/' | xargs git push origin"
|
29
29
|
cmd.sub!('git branch', 'git branch -r')
|
data/lib/git-utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Add some Git utilities
|
14
14
|
email:
|
@@ -18,6 +18,7 @@ executables:
|
|
18
18
|
- git-bump
|
19
19
|
- git-cleanup
|
20
20
|
- git-delete-remote-branch
|
21
|
+
- git-files-changed
|
21
22
|
- git-graph
|
22
23
|
- git-merge-into-branch
|
23
24
|
- git-minor
|
@@ -45,6 +46,7 @@ files:
|
|
45
46
|
- bin/git-bump
|
46
47
|
- bin/git-cleanup
|
47
48
|
- bin/git-delete-remote-branch
|
49
|
+
- bin/git-files-changed
|
48
50
|
- bin/git-graph
|
49
51
|
- bin/git-merge-into-branch
|
50
52
|
- bin/git-minor
|
@@ -86,7 +88,7 @@ homepage: https://github.com/mhartl/git-utils
|
|
86
88
|
licenses:
|
87
89
|
- MIT
|
88
90
|
metadata: {}
|
89
|
-
post_install_message:
|
91
|
+
post_install_message:
|
90
92
|
rdoc_options: []
|
91
93
|
require_paths:
|
92
94
|
- lib
|
@@ -101,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
103
|
- !ruby/object:Gem::Version
|
102
104
|
version: '0'
|
103
105
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
105
|
-
signing_key:
|
106
|
+
rubygems_version: 3.3.7
|
107
|
+
signing_key:
|
106
108
|
specification_version: 4
|
107
109
|
summary: See the README for full documentation
|
108
110
|
test_files:
|