diff --git a/bin/diff-check b/bin/diff-check index f595ee5..6b97869 100755 --- a/bin/diff-check +++ b/bin/diff-check @@ -6,7 +6,7 @@ if ! git diff-index --quiet HEAD; then printf 'These files changed when running the command:\n\n' git diff --name-only | while read -r n ; do - echo "* $n" + echo "* \`$n\`" done exit 1 diff --git a/spec/black_box/diff-check_spec.rb b/spec/black_box/diff-check_spec.rb index 9b3349e..57be2da 100644 --- a/spec/black_box/diff-check_spec.rb +++ b/spec/black_box/diff-check_spec.rb @@ -25,7 +25,7 @@ expect(session.run("diff-check")).to have_stdout(<<~SUMMARY These files changed when running the command: - * README + * `README` SUMMARY ) end