eslint-plugin-diff icon indicating copy to clipboard operation
eslint-plugin-diff copied to clipboard

Can't provide commit SHA to ESLINT_PLUGIN_DIFF_COMMIT

Open cakeinpanic opened this issue 2 years ago • 1 comments

Hi, if I'm setting ESLINT_PLUGIN_DIFF_COMMIT to be an actual commit, I'm getting an error

Error: Failed to load plugin 'diff' declared in '.eslintrc.js': Command failed: git diff --diff-algorithm=histogram --diff-filter=ACM --find-renames=100% --name-only --no-ext-diff --relative origin/4f357bc497d291cfb953ec84460b8aa7244ccc1f --
fatal: bad revision 'origin/4f357bc497d291cfb953ec84460b8aa7244ccc1f'

But sometimes I want to compare with a revision, can you please support provide an ability to use SHA there?

I believe this can be a simple solutions

cakeinpanic avatar Dec 25 '23 09:12 cakeinpanic