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

Conversation

@andrew
Copy link
Collaborator

@andrew andrew commented Jan 3, 2026

Find where a package is declared

git pkgs where rails           # find in manifest files
git pkgs where lodash -C 2     # show 2 lines of context
git pkgs where express --ecosystem=npm

Shows which manifest files declare a package and the exact line:

Gemfile:5:gem "rails", "~> 7.0"
Gemfile.lock:142:    rails (7.0.8)

Like grep but scoped to manifest files that git-pkgs knows about.

@andrew andrew merged commit f0b3a88 into main Jan 4, 2026
7 checks passed
@andrew andrew deleted the where-command branch January 4, 2026 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants