Skip to content

Commit

Permalink
add git hooks and a few changes post migration (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Jan 14, 2019
1 parent 1b2f778 commit 8ca40a2
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 2 deletions.
21 changes: 21 additions & 0 deletions README.md
@@ -0,0 +1,21 @@
# VisIt

[![Documentation Status](https://readthedocs.org/projects/visit-sphinx-github-user-manual/badge/?version=latest)](http://visit-sphinx-github-user-manual.readthedocs.io)

Project Website: https://visit.llnl.gov

Source code repository for the VisIt Scientific Visualization and Data Analysis Application

## User Resources

VisIt Users Wiki: https://www.visitusers.org

VisIt Users Manual: https://visit-sphinx-user-manual.readthedocs.io/en/latest/index.html

VisIt Python Manual: https://visit-sphinx-python-manual.readthedocs.io/en/latest/

## Developer Resources

Github Development Info: https://visitusers.org/index.php?title=Github


7 changes: 7 additions & 0 deletions scripts/git-hooks/install-hooks.sh
@@ -0,0 +1,7 @@
#!/bin/sh
#------------------------------------------------------------------------------
# Install client-side hooks
#------------------------------------------------------------------------------
basedir=`git rev-parse --show-toplevel`
hooksdir="$basedir/.git/hooks/"
cp -v $basedir/scripts/git-hooks/pre-commit $hooksdir
14 changes: 14 additions & 0 deletions scripts/git-hooks/pre-commit
@@ -0,0 +1,14 @@
#!/bin/sh

branch="$(git rev-parse --abbrev-ref HEAD)"

if [ "$branch" == "develop" ]; then
echo "ERROR: You can't commit directly to the develop branch. Please do work on a feature branch."
exit 1
fi

if [[ $branch == *RC ]]; then
echo "ERROR: You can't commit directly to a RC branch. Please do work on a feature branch."
exit 1
fi

1 change: 1 addition & 0 deletions scripts/sh_git_lfs_pull_data.sh
@@ -0,0 +1 @@
git lfs pull --include="data/*"
1 change: 1 addition & 0 deletions scripts/sh_git_lfs_pull_sdt.sh
@@ -0,0 +1 @@
git lfs pull --include="src/*,data/*,test/*"
1 change: 1 addition & 0 deletions scripts/sh_git_lfs_pull_src.sh
@@ -0,0 +1 @@
git lfs pull --include="src/*"
1 change: 1 addition & 0 deletions scripts/sh_git_lfs_pull_test.sh
@@ -0,0 +1 @@
git lfs pull --include="test/*"
4 changes: 2 additions & 2 deletions src/doc/conf.py
Expand Up @@ -124,15 +124,15 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'sphinx_rtd_theme'
#html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ["_themes"]
#html_theme_path = ["_themes"]

# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
Expand Down
4 changes: 4 additions & 0 deletions src/resources/github_usernames.txt
@@ -0,0 +1,4 @@
biagas, Kathleen Biagas, LLNL
brugger, Eric Brugger, LLNL
cyrush, Cyrus Harrison, LLNL
rusu1, Eddie Rusu, LLNL

0 comments on commit 8ca40a2

Please sign in to comment.