Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit a53c600

Browse files
committed
Rename git pkgs outdated to git pkgs stale
1 parent 80bf3f5 commit a53c600

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## [Unreleased]
22

3-
## [0.3.0] - 2026-01-02
4-
3+
- Renamed `git pkgs outdated` to `git pkgs stale` (outdated remains as alias)
54
- `git pkgs log` command to list commits with dependency changes
65
- `git pkgs schema` command to output database schema in text, SQL, JSON, or markdown
76
- `git pkgs praise` alias for `blame`

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ git pkgs tree --ecosystem=rubygems
226226

227227
This shows dependencies grouped by type (runtime, development, etc).
228228

229+
### Find stale dependencies
230+
231+
```bash
232+
git pkgs stale # list deps by how long since last touched
233+
git pkgs stale --days=365 # only show deps untouched for a year
234+
git pkgs stale --ecosystem=npm # filter by ecosystem
235+
git pkgs outdated # alias for stale
236+
```
237+
238+
Shows dependencies sorted by how long since they were last changed in your repo. Useful for finding packages that may have been forgotten or need review.
239+
229240
### Diff between commits
230241

231242
```bash

lib/git/pkgs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
require_relative "pkgs/commands/history"
2222
require_relative "pkgs/commands/why"
2323
require_relative "pkgs/commands/blame"
24-
require_relative "pkgs/commands/outdated"
24+
require_relative "pkgs/commands/stale"
2525
require_relative "pkgs/commands/stats"
2626
require_relative "pkgs/commands/diff"
2727
require_relative "pkgs/commands/tree"

lib/git/pkgs/cli.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
module Git
66
module Pkgs
77
class CLI
8-
COMMANDS = %w[init update hooks info list tree history search why blame outdated stats diff branch show log upgrade schema].freeze
9-
ALIASES = { "praise" => "blame" }.freeze
8+
COMMANDS = %w[init update hooks info list tree history search why blame stale stats diff branch show log upgrade schema].freeze
9+
ALIASES = { "praise" => "blame", "outdated" => "stale" }.freeze
1010

1111
def self.run(args)
1212
new(args).run
@@ -59,7 +59,7 @@ def print_help
5959
search Find a dependency across all history
6060
why Explain why a dependency exists
6161
blame Show who added each dependency
62-
outdated Show dependencies that haven't been updated
62+
stale Show dependencies that haven't been updated
6363
stats Show dependency statistics
6464
diff Show dependency changes between commits
6565
show Show dependency changes in a commit
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Git
44
module Pkgs
55
module Commands
6-
class Outdated
6+
class Stale
77
def initialize(args)
88
@args = args
99
@options = parse_options
@@ -93,7 +93,7 @@ def parse_options
9393
options = {}
9494

9595
parser = OptionParser.new do |opts|
96-
opts.banner = "Usage: git pkgs outdated [options]"
96+
opts.banner = "Usage: git pkgs stale [options]"
9797

9898
opts.on("-e", "--ecosystem=NAME", "Filter by ecosystem") do |v|
9999
options[:ecosystem] = v

0 commit comments

Comments
 (0)