Age | Commit message (Collapse) | Author |
|
The uuidgen command, from the uuid-runtime package on Debian, can
generate UUIDs. If the uuid command isn't available, fallback to
uuidgen.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Generate unique keys for YAML project files lacking them.
There are two minor issues left:
1. Due to the "git add", not only the key is added to the file,
but also any other changes that are not yet staged,
2. When doing "git add <file>; git commit <file>", the addition of
the key is also left in the unstaged changes as a side effect,
so "git diff" still shows that change as uncommitted.
More investigation shows this only happens when passing the
file name to the "git commit" command. Hence it does not
happen when doing "git add <file>; git commit".
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
|
To enable:
ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
|