summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step4/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-11-18 10:36:18 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-01 14:51:58 (GMT)
commitf2128d4c2886ed4ac2532834f53b9522e6586601 (patch)
tree3992d9027b2b8bb55893c2a4919fe6460e182edc /Tests/Tutorial/Step4/MathFunctions/MathFunctions.h
parentff2451dc2483df34a70c611836b0ea887bfa3c82 (diff)
downloadCMake-f2128d4c2886ed4ac2532834f53b9522e6586601.zip
CMake-f2128d4c2886ed4ac2532834f53b9522e6586601.tar.gz
CMake-f2128d4c2886ed4ac2532834f53b9522e6586601.tar.bz2
ExternalProject: Improve handling of git remote branches
ExternalProject handles git remote branches by commit hash. Due to this, the git repository ends in detached states, and local commits are discarded. Use "git rebase" for remote branches instead of "git checkout". If there are uncommitted changes, use "git stash save/pop" to save changes and restore them after the rebase. If any of these operations fails, try to restore the original status and exit with a fatal error, asking the user to resolve the conflicts manually. This also makes the behaviour of ExternalProject using git more similar to the svn version, and probably more likely to what the user expects by setting GIT_TAG to a branch.
Diffstat (limited to 'Tests/Tutorial/Step4/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions