git-utils 2.2.1 → 2.4.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: 0d9003426f3e49eff5d5e7e597d4f0b21ea95c38dfa97453f7e766f728cbda59
4
- data.tar.gz: c653f029692db2cb113fd5d41e9e3c8a5c9b6d78080ca30ed9eaf57d3d4583ff
3
+ metadata.gz: 181af0ae07400d1e5461d0c1b7abf774c44d9e9f295575903582ef76c6fd5ae6
4
+ data.tar.gz: 4949ed6c13b21c71c4a65fd02e5486cccfdf01e72a20ccc870a87c488fde8a6f
5
5
  SHA512:
6
- metadata.gz: ec26e29ebefbe8aa7359520b8139f69da6458bcf52ffa3e3d29e3d1ecad952ca3b05d4f26c8ff49a6c9f953778147cd51f8ba204d47cb1b38a660e9becc6c850
7
- data.tar.gz: 4968bffac62a24b268def50576e77cf129cbb52efbc1349106357bb6e572467d840df95d7667b4dcea90f4fe691dd9efb39494ed352f60fe443e27224e2172eb
6
+ metadata.gz: 498fc16f27f767d07dadf90b54cca8e0102c3ef633d58c4512c14e47a5ffef9f34a38b86cf1a54686ee3155e012209d21fa01ebbdd3bc9c429b6b94431cb0186
7
+ data.tar.gz: 4f9bd955b194d529af26bdebe70a9cf17d4f351d3727b5d35a99c160c7e9cab5b1427a8ca6fd8fca8fe74362cca974bc8e5f84cfdc37743242d0f2fb6fb704f2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-utils (2.2.1)
4
+ git-utils (2.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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)
@@ -24,6 +29,7 @@ See below for more details on the commands defined by `git-utils`. To learn more
24
29
  * `git sync [branch]`: syncs the given branch with the remote branch (defaults to repo's default branch)
25
30
  * `git sync-fork`: syncs the default branch of a fork with the original upstream default (assumes upstream configuration as in “[Configuring a remote for a fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork)”)
26
31
  * `git typo`: makes a commit with the message `"Fix typo"`
32
+ * `git typos`: makes a commit with the message `"Fix typos"`
27
33
  * `git undo`: undoes the last commit
28
34
  * `git graph`: displays full repository history in graphical format; alias for `git log --graph --oneline --decorate --all --full-history --author-date-order --no-notes`
29
35
 
@@ -83,7 +89,3 @@ The main purpose of `git sync` is to prepare the current branch for merging with
83
89
  $ git merge origin/master
84
90
 
85
91
  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
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # See which files changed.
4
+ system 'git log --name-only'
data/bin/git-minor CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Makes minor changes.
4
3
  system 'git commit -am "Make minor changes"'
data/bin/git-typo CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Makes anal changes.
4
3
  system 'git commit -am "Fix typo"'
data/bin/git-typos ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ system 'git commit -am "Fix typos"'
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "2.2.1"
3
+ VERSION = "2.4.0"
4
4
  end
5
5
  end
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.2.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2024-01-24 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
@@ -29,6 +30,7 @@ executables:
29
30
  - git-sync
30
31
  - git-sync-fork
31
32
  - git-typo
33
+ - git-typos
32
34
  - git-undo
33
35
  extensions: []
34
36
  extra_rdoc_files: []
@@ -45,6 +47,7 @@ files:
45
47
  - bin/git-bump
46
48
  - bin/git-cleanup
47
49
  - bin/git-delete-remote-branch
50
+ - bin/git-files-changed
48
51
  - bin/git-graph
49
52
  - bin/git-merge-into-branch
50
53
  - bin/git-minor
@@ -56,6 +59,7 @@ files:
56
59
  - bin/git-sync
57
60
  - bin/git-sync-fork
58
61
  - bin/git-typo
62
+ - bin/git-typos
59
63
  - bin/git-undo
60
64
  - git-utils.gemspec
61
65
  - lib/git-utils.rb