leetcode

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

commit 37001bb0f0d8f22b999cef91bac4cd8d8b34e035
parent 6dc5e51a5507b8c08bc139a88d0ae643012fa713
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Wed, 25 Jan 2023 01:16:06 +0100

Ignore deleted files

Diffstat:
Mformat.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/format.sh b/format.sh @@ -1,7 +1,7 @@ #!/bin/bash # Format newly added files using clang-format -for i in $(git status | grep -Eo "(Problems|Templates).*\.cpp") +for i in $(git status | grep -v "deleted" | grep -Eo "(Problems|Templates).*\.cpp") do echo "Formating: $i" clang-format -i $i