Skip to content

createyourpersonalaccount/gitsearchdigest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitsearchdigest

Suppose you have the files FOO and BAR and a git repository, and you’d like to know the last appearance these files made in the repository.

Assuming FOO and BAR are under the current directory (which is not the git repository), the task can be accomplished like so:

printf "FOO\0BAR\0" | gitsearchdigest -C /path/to/gitrepo

This interface allows us to use it e.g. like this:

tar xvf mysterious-xyzlib-bundle.tar.xz
cd mysterious-bundle
find . -type f -print0 | gitsearchdigest -C /path/to/xyzlibrepo

to search for files in the xyzlib git repository from a mysterious xyzlib bundle.

About

Search git repository for the last appearance of an exact file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages