Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir committed Jan 3, 2025
1 parent 6f82bf2 commit fdf14e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion examples/git-clang-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"name": "examples-git-clang-format",
"version": "1.2.3",
"scripts": {
"git-clang-format": "true"
"add-a-space-to-line-9-of-main-c-file": "cat src/main_overwrite.txt > src/main.c",
"run-git-add": "git add src/main.c",
"run-git-clang-format": "npx git-clang-format"
},
"dependencies": {
"clang-format-git": "^1.2.3",
Expand Down
10 changes: 5 additions & 5 deletions examples/git-clang-format/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
int main(void) {
printf("Line 4");
printf("Line 5");
pritnf("Line 6");
pritnf("Line 7");
pritnf("Line 8");
pritnf("Line 9");
pritnf("Line 10");
printf("Line 6");
printf("Line 7");
printf("Line 8");
printf("Line 9");
printf("Line 10");

return 0;
}
10 changes: 5 additions & 5 deletions examples/git-clang-format/src/main_overwrite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
int main(void) {
printf("Line 4");
printf("Line 5");
pritnf("Line 6");
pritnf("Line 7");
pritnf("Line 8");
pritnf("Line 9");
pritnf("Line 10");
printf("Line 6");
printf("Line 7");
printf("Line 8");
printf("Line 9");
printf("Line 10");

return 0;
}

0 comments on commit fdf14e9

Please sign in to comment.