Review Board 2.0.15


util: git pre-commit hook to check staged files

Review Request #3625 - Created Sept. 15, 2016 and submitted

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 11636:a027301cec6d
---------------------------
util: git pre-commit hook to check staged files

This patch updates the git-pre-commit hook to check the files as they
will be after the commit, instead of as they are currently, this way we
prevent the undesired situation:
    - unstylish modification of a file
    - stage said file for commit
    - try to commit and fail due to style
    - fix style, forgetting staging changes
    - try to commit and fail, as although the changes staged are not
      styly, the current content of the file is.

Change-Id: I5cc3f783375d9e4162e310e176103ebbf0a59023
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
[andreas.sandberg@arm.com: Rebased ontop of latest gem5]

   
Review request changed
Updated (Nov. 25, 2016, 2:34 a.m.)

Status: Closed (submitted)