mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Change-Id: Iedce0aa822f069ec1bca2d2e76e14da64c62f5bd Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
22 lines
531 B
Bash
Executable File
22 lines
531 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2018-2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
python_interpreter="python3"
|
|
|
|
if [[ "$OSTYPE" == "msys" ]]; then
|
|
python_interpreter="python"
|
|
fi
|
|
|
|
converter=$(dirname $(readlink -f $0))/set_copyright.py
|
|
|
|
if [ "${1:-STAGED}" = "HEAD" ]; then
|
|
git diff-tree --no-commit-id --name-only -r HEAD | xargs -n 1 $python_interpreter $converter
|
|
else
|
|
git diff --cached --name-only | xargs -n 1 $python_interpreter $converter
|
|
git diff --name-only | xargs -n 1 echo "Not scanned: "
|
|
fi
|