This project is NOT the official VTK repository.
It is a fork of VTK sources hosted at https://github.com/Kitware/VTK.
The official upstream repository is https://gitlab.kitware.com/vtk/vtk.
It is used as staging area to maintain and test patches that will be contributed back to the official repository.
Each branch is named following the pattern slicer-vY.Y.Z-YYYY-MM-DD-SHA{7}
where:
vX.Y.Z
is the version of the forked projectYYYY-MM-DD
is the date of the last official commit associated with the branch.SHA{7}
are the first seven characters of the last official commit associated with the branch.For more details, see https://www.slicer.org/wiki/Documentation/Nightly/Developers/ProjectForks
git clone git://github.com/Slicer/VTK
cd VTK
git remote add upstream git://github.com/kitware/VTK
git fetch upstream
# Extract version from https://github.com/Kitware/VTK/blob/master/CMake/vtkVersion.cmake
XYZ=$(cat CMake/vtkVersion.cmake | grep VERSION | sed -re "s/set\(VTK_[A-Z]+_VERSION (.+)\)/\\1/" | perl -pe 'chomp if eof' | tr '\n' '.')
echo "XYZ [${XYZ}]"
DATE=$(git show -s --format=%ci upstream/master | cut -d" " -f1)
echo "DATE [${DATE}]"
vtkSHA=$(git show -s --format=%h upstream/master)
echo "vtkSHA: [${SHA}]"
BRANCH_NAME=slicer-v${XYZ}-${DATE}-${vtkSHA}
echo "BRANCH_NAME [${BRANCH_NAME}]"
git checkout -b ${BRANCH_NAME} ${vtkSHA}
Cherry-pick the Slicer specific commits from last branch. Resolve conflict as needed.
..
) operation: git log --pretty=format:"%h" {vtkSHA}..slicer-xyz-{vtkSHA}
To test the changes, locally rebuild VTK, CTK and Slicer.
Publish the branch. (directly in this repo if you have push rights, or on a fork)
Update Slicer VTK external project and submit a pull request.
Ask on https://discourse.slicer.org/
If you have questions, see https://discourse.slicer.org/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。