leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

commit 6ef789ff3665ea452c124eff0020a06243a932fe
parent 0b59f4febd7dff50da6a725e345d0926de56e5bf
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Mon,  2 Jan 2023 16:16:09 +0100

format.sh use `git status` instead of `git diff`

- Help with README table resize

Diffstat:
Mformat.sh | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/format.sh b/format.sh @@ -1,9 +1,8 @@ #!/bin/bash # Format newly added files using clang-format -# Note: must run before git add -for i in $(git diff README.md | grep '+' | cut -d'|' -f2 -s) +for i in $(git status | grep Problems | xargs) do echo "Formating: $i" - clang-format -i ./Problems/$i.cpp + clang-format -i $i done