68c8e111ae
Update the format script to use absolute path for clang-format-diff.py
instead of relative path. This ensures the script works correctly
regardless of the current working directory when executed.
- Change from './clang-format-diff.py' to '${root}/projects/rocr-runtime/clang-format-diff.py'
- Improves script reliability and portability
Signed-off-by: Honglei Huang <honghuan@amd.com>
7 baris
188 B
Bash
7 baris
188 B
Bash
#!/bin/bash
|
|
root=`git rev-parse --show-toplevel`
|
|
pushd . > /dev/null
|
|
cd $root
|
|
git diff -U0 HEAD^ | "${root}/projects/rocr-runtime/clang-format-diff.py" -p1 -i -style=file
|
|
popd > /dev/null
|