Skip to content

Does noseyparker scan ALL commits, or can we just scan main? #82

Answered by bradlarsen
munntjlx asked this question in Q&A
Discussion options

You must be logged in to vote

@munntjlx Yes, in its current incarnation (v0.14.0 and the latest unreleased bit on main), all found Git history is scanned. There is not a nice built-in way to change this behavior at present.

There is a workaround you could use today: use git archive to export just the files from a desired commit to a directory tree (sans a .git directory), and have Nosey Parker scan that. For example:

$ git archive $COMMIT_SHA_OF_INTEREST -o out.tar
$ mkdir extracted && tar -C extracted -xf out.tar
$ noseyparker scan ...options... extracted

If this is done just so, there will be no .git directory in the input, no Git history to be found, and only the directory of checked-out files from $COMMIT_SHA_OF_…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@munntjlx
Comment options

@munntjlx
Comment options

Answer selected by munntjlx
Comment options

You must be logged in to vote
1 reply
@bradlarsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants