Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easily iterate over and search git branches #72

Open
mpenning opened this issue May 2, 2023 · 1 comment
Open

Easily iterate over and search git branches #72

mpenning opened this issue May 2, 2023 · 1 comment

Comments

@mpenning
Copy link
Contributor

mpenning commented May 2, 2023

This is a common problem I wish pss solved.

  • Imagine I have a python class instance method in git REPO_01. This repo has several git branches.

  • Imagine my python in git REPO_02 has many git branches, only some of them import the class from REPO_01

Assume I git clone both repos in a directory on my laptop; assume the directory is called ~/project_foo.

How can I iterate over and search all branches and all files of REPO_01 and REPO_02 (which have multiple levels of subdirectories) for a method string, "do_useful_thing_01"?

If I am right, pss can't do this today without installing xargs.

@eliben
Copy link
Owner

eliben commented May 5, 2023

pss is unaware of git branches, and adding such awareness would be a very large feature. I've only needed such functionality very rarely myself, and in such cases a piped command with some git command works well. OOC, where do you have to specifically install xargs? Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants