Skip to content

Commit a8f2007

Browse files
committed
DOC: updated gitwash docs and makefile for autoupdate
1 parent a5e761d commit a8f2007

16 files changed

+389
-107
lines changed

doc/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ doctest:
8787
@echo "Testing of doctests in the sources finished, look at the " \
8888
"results in _build/doctest/output.txt."
8989

90+
gitwash-update:
91+
python ../tools/gitwash_dumper.py devel nipype \
92+
--project-url=http://nipy.org/nipype \
93+
--project-ml-url=http://mail.scipy.org/mailman/listinfo/nipy-devel
94+
@echo "gitwash updated"
95+
9096
# Sourceforge doesn't appear to have a way of copying the files
9197
# without specifying a username. So we'll probably have one target
9298
# for each project admin
@@ -101,7 +107,7 @@ sf_satra_nightly: html
101107
sf_satra: html
102108
@echo "Copying html files to sourceforge..."
103109
rsync -auv _build/html/. satra,nipy@web.sourceforge.net:htdocs/nipype/.
104-
110+
105111
sf_filo: html
106112
@echo "Copying html files to sourceforge..."
107113
rsync -auv _build/html/. gorgolewski,nipy@web.sourceforge.net:htdocs/nipype/.

doc/devel/gitwash/configure_git.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ Merging
113113
To enforce summaries when doing merges (``~/.gitconfig`` file again)::
114114

115115
[merge]
116-
summary = true
116+
log = true
117117

118118
Or from the command line::
119119

120-
git config --global merge.summary true
120+
git config --global merge.log true
121121

122122

123-
.. include:: git_links.inc
123+
.. include:: links.inc

doc/devel/gitwash/development_workflow.rst

+17-16
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
Development workflow
55
====================
66

7-
You already have your own forked copy of the Nipype_ repository, by
7+
You already have your own forked copy of the nipype_ repository, by
88
following :ref:`forking`, :ref:`set-up-fork`, and you have configured
99
git_ by following :ref:`configure-git`.
1010

1111
Workflow summary
1212
================
1313

1414
* Keep your ``master`` branch clean of edits that have not been merged
15-
to the main Nipype_ development repo. Your ``master`` then will follow
16-
the main Nipype_ repository.
15+
to the main nipype_ development repo. Your ``master`` then will follow
16+
the main nipype_ repository.
1717
* Start a new *feature branch* for each set of edits that you do.
1818
* If you can avoid it, try not to merge other branches into your feature
1919
branch while you are working.
@@ -22,7 +22,7 @@ Workflow summary
2222
This way of working really helps to keep work well organized, and in
2323
keeping history as clear as possible.
2424

25-
See - for example - `linux git workflow`_.
25+
See |emdash| for example |emdash| `linux git workflow`_.
2626

2727
Making a new feature branch
2828
===========================
@@ -33,7 +33,7 @@ Making a new feature branch
3333
git checkout my-new-feature
3434

3535
Generally, you will want to keep this also on your public github_ fork
36-
of Nipype_. To do this, you `git push`_ this new branch up to your github_
36+
of nipype_. To do this, you `git push`_ this new branch up to your github_
3737
repo. Generally (if you followed the instructions in these pages, and
3838
by default), git will have a link to your github_ repo, called
3939
``origin``. You push up to your own repo on github_ with::
@@ -87,29 +87,30 @@ In more detail
8787
#. To commit all modified files into the local copy of your repo,, do
8888
``git commit -am 'A commit message'``. Note the ``-am`` options to
8989
``commit``. The ``m`` flag just signals that you're going to type a
90-
message on the command line. The ``a`` flag - you can just take on
91-
faith - or see `why the -a flag?`_. See also the `git commit`_ manual
92-
page.
90+
message on the command line. The ``a`` flag |emdash| you can just take on
91+
faith |emdash| or see `why the -a flag?`_ |emdash| and the helpful use-case
92+
description in the `tangled working copy problem`_. The `git commit`_ manual
93+
page might also be useful.
9394
#. To push the changes up to your forked repo on github_, do a ``git
9495
push`` (see `git push`).
9596

9697
Asking for code review
9798
======================
9899

99-
#. Go to your repo URL - e.g. ``http://github.com/your-user-name/nipype``.
100+
#. Go to your repo URL |emdash| e.g. ``http://github.com/your-user-name/nipype``.
100101
#. Click on the *Branch list* button:
101102

102103
.. image:: branch_list.png
103104

104-
#. Click on the *Compare* button for your feature branch - here ``my-new-feature``:
105+
#. Click on the *Compare* button for your feature branch |emdash| here ``my-new-feature``:
105106

106107
.. image:: branch_list_compare.png
107108

108109
#. If asked, select the *base* and *comparison* branch names you want to
109110
compare. Usually these will be ``master`` and ``my-new-feature``
110111
(where that is your feature branch name).
111112
#. At this point you should get a nice summary of the changes. Copy the
112-
URL for this, and post it to the `Nipype mailing list`_, asking for
113+
URL for this, and post it to the `nipype mailing list`_, asking for
113114
review. The URL will look something like:
114115
``http://github.com/your-user-name/nipype/compare/master...my-new-feature``.
115116
There's an example at
@@ -135,14 +136,14 @@ When you are ready to ask for the merge of your code:
135136

136137
.. image:: pull_button.png
137138

138-
Enter a message; we suggest you select only ``Nipype`` as the
139-
recipient. The message will go to the `Nipype mailing list`_. Please
139+
Enter a message; we suggest you select only ``nipype`` as the
140+
recipient. The message will go to the `nipype mailing list`_. Please
140141
feel free to add others from the list as you like.
141142

142143
Merging from trunk
143144
==================
144145

145-
This updates your code from the upstream `Nipype github`_ repo.
146+
This updates your code from the upstream `nipype github`_ repo.
146147

147148
Overview
148149
--------
@@ -197,7 +198,7 @@ If you want to work on some stuff with other people, where you are all
197198
committing into the same repository, or even the same branch, then just
198199
share it via github_.
199200

200-
First fork Nipype into your account, as from :ref:`forking`.
201+
First fork nipype into your account, as from :ref:`forking`.
201202

202203
Then, go to your forked repository github page, say
203204
``http://github.com/your-user-name/nipype``
@@ -235,4 +236,4 @@ To see a linear list of commits for this branch::
235236
You can also look at the `network graph visualizer`_ for your github_
236237
repo.
237238

238-
.. include:: git_links.inc
239+
.. include:: links.inc

doc/devel/gitwash/following_latest.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
=============================
66

77
These are the instructions if you just want to follow the latest
8-
*Nipype* source, but you don't need to do any development for now.
8+
*nipype* source, but you don't need to do any development for now.
99

1010
The steps are:
1111

@@ -18,7 +18,7 @@ Get the local copy of the code
1818

1919
From the command line::
2020

21-
git clone git://github.com/nipy/nipype.git
21+
git clone git://github.com/nipype/nipype.git
2222

2323
You now have a copy of the code tree in the new ``nipype`` directory.
2424

@@ -33,4 +33,4 @@ From time to time you may want to pull down the latest code. Do this with::
3333
The tree in ``nipype`` will now have the latest changes from the initial
3434
repository.
3535

36-
.. include:: git_links.inc
36+
.. include:: links.inc

doc/devel/gitwash/forking_hell.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
.. _forking:
22

33
==========================================
4-
Making your own copy (fork) of Nipype
4+
Making your own copy (fork) of nipype
55
==========================================
66

77
You need to do this only once. The instructions here are very similar
8-
to the instructions at http://help.github.com/forking/ - please see that
9-
page for more detail. We're repeating some of it here just to give the
10-
specifics for the Nipype_ project, and to suggest some default names.
8+
to the instructions at http://help.github.com/forking/ |emdash| please see
9+
that page for more detail. We're repeating some of it here just to give the
10+
specifics for the nipype_ project, and to suggest some default names.
1111

1212
Set up and configure a github_ account
1313
======================================
1414

1515
If you don't have a github_ account, go to the github_ page, and make one.
1616

17-
You then need to configure your account to allow write access - see the
18-
``Generating SSH keys`` help on `github help`_.
17+
You then need to configure your account to allow write access |emdash| see
18+
the ``Generating SSH keys`` help on `github help`_.
1919

20-
Create your own forked copy of Nipype_
21-
=========================================
20+
Create your own forked copy of nipype_
21+
===========================================
2222

2323
#. Log into your github_ account.
24-
#. Go to the Nipype_ github home at `Nipype github`_.
24+
#. Go to the nipype_ github home at `nipype github`_.
2525
#. Click on the *fork* button:
2626

2727
.. image:: forking_button.png
2828

2929
Now, after a short pause and some 'Hardcore forking action', you
30-
should find yourself at the home page for your own forked copy of Nipype_.
30+
should find yourself at the home page for your own forked copy of nipype_.
3131

32-
.. include:: git_links.inc
32+
.. include:: links.inc
3333

doc/devel/gitwash/git_install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Have a look at the github_ install help pages available from `github help`_
2323

2424
There are good instructions here: http://book.git-scm.com/2_installing_git.html
2525

26-
.. include:: git_links.inc
26+
.. include:: links.inc

doc/devel/gitwash/git_intro.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Introduction
33
==============
44

5-
These pages describe a git_ and github_ workflow for the Nipype_
5+
These pages describe a git_ and github_ workflow for the nipype_
66
project.
77

88
There are several different workflows here, for different ways of
9-
working with *Nipype*.
9+
working with *nipype*.
1010

1111
This is not a comprehensive git_ reference, it's just a workflow for our
1212
own project. It's tailored to the github_ hosting service. You may well
@@ -15,4 +15,4 @@ should get you started.
1515

1616
For general resources for learning git_ see :ref:`git-resources`.
1717

18-
.. include:: git_links.inc
18+
.. include:: links.inc

doc/devel/gitwash/git_links.inc

+7-25
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,6 @@
88
__not_case_sensitive__, so only one target definition is needed for
99
nipy, NIPY, Nipy, etc...
1010
11-
.. PROJECTNAME placeholders
12-
.. _PROJECTNAME: http://neuroimaging.scipy.org
13-
.. _`PROJECTNAME github`: http://github.com/nipy
14-
.. _`PROJECTNAME mailing list`: http://projects.scipy.org/mailman/listinfo/nipy-devel
15-
16-
.. nipy
17-
.. _nipy: http://nipy.org/nipy
18-
.. _`nipy github`: http://github.com/nipy/nipy
19-
.. _`nipy mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
20-
21-
.. ipython
22-
.. _ipython: http://ipython.scipy.org
23-
.. _`ipython github`: http://github.com/ipython/ipython
24-
.. _`ipython mailing list`: http://mail.scipy.org/mailman/listinfo/IPython-dev
25-
26-
.. dipy
27-
.. _dipy: http://nipy.org/dipy
28-
.. _`dipy github`: http://github.com/Garyfallidis/dipy
29-
.. _`dipy mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
30-
31-
.. nipype
32-
.. _nipype: http://nipy.org/nipype
33-
.. _`nipype github`: http://github.com/nipy/nipype
34-
.. _`nipype mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
35-
3611
.. git stuff
3712
.. _git: http://git-scm.com/
3813
.. _github: http://github.com
@@ -67,6 +42,13 @@
6742
.. _git config: http://www.kernel.org/pub/software/scm/git/docs/git-config.html
6843
.. _why the -a flag?: http://www.gitready.com/beginner/2009/01/18/the-staging-area.html
6944
.. _git staging area: http://www.gitready.com/beginner/2009/01/18/the-staging-area.html
45+
.. _tangled working copy problem: http://tomayko.com/writings/the-thing-about-git
7046
.. _git management: http://kerneltrap.org/Linux/Git_Management
7147
.. _linux git workflow: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html
7248
.. _git parable: http://tom.preston-werner.com/2009/05/19/the-git-parable.html
49+
.. _git foundation: http://matthew-brett.github.com/pydagogue/foundation.html
50+
51+
.. other stuff
52+
.. _python: http://www.python.org
53+
54+
.. |emdash| unicode:: U+02014

doc/devel/gitwash/git_resources.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ Tutorials and summaries
1414
* The `git user manual`_
1515
* The `git tutorial`_
1616
* The `git community book`_
17-
* `git ready`_ - a nice series of tutorials
18-
* `git casts`_ - video snippets giving git how-tos.
19-
* `git magic`_ - extended introduction with intermediate detail
20-
* Fernando Perez' git page - `Fernando's git page`_ - many links and tips
17+
* `git ready`_ |emdash| a nice series of tutorials
18+
* `git casts`_ |emdash| video snippets giving git how-tos.
19+
* `git magic`_ |emdash| extended introduction with intermediate detail
20+
* The `git parable`_ is an easy read explaining the concepts behind git.
21+
* Our own `git foundation`_ expands on the `git parable`_.
22+
* Fernando Perez' git page |emdash| `Fernando's git page`_ |emdash| many
23+
links and tips
2124
* A good but technical page on `git concepts`_
22-
* Th `git parable`_ is an easy read explaining the concepts behind git.
2325
* `git svn crash course`_: git_ for those of us used to subversion_
2426

2527
Advanced git workflow
@@ -54,4 +56,4 @@ online manual pages for some common commands:
5456
* `git remote`_
5557
* `git status`_
5658

57-
.. include:: git_links.inc
59+
.. include:: links.inc

doc/devel/gitwash/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _using-git:
22

3-
Working with *Nipype* source code
3+
Working with *nipype* source code
44
======================================
55

66
Contents:

doc/devel/gitwash/known_projects.inc

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.. Known projects
2+
3+
.. PROJECTNAME placeholders
4+
.. _PROJECTNAME: http://neuroimaging.scipy.org
5+
.. _`PROJECTNAME github`: http://github.com/nipy
6+
.. _`PROJECTNAME mailing list`: http://projects.scipy.org/mailman/listinfo/nipy-devel
7+
8+
.. numpy
9+
.. _numpy: hhttp://numpy.scipy.org
10+
.. _`numpy github`: http://github.com/numpy/numpy
11+
.. _`numpy mailing list`: http://mail.scipy.org/mailman/listinfo/numpy-discussion
12+
13+
.. scipy
14+
.. _scipy: http://www.scipy.org
15+
.. _`scipy github`: http://github.com/scipy/scipy
16+
.. _`scipy mailing list`: http://mail.scipy.org/mailman/listinfo/scipy-dev
17+
18+
.. nipy
19+
.. _nipy: http://nipy.org/nipy
20+
.. _`nipy github`: http://github.com/nipy/nipy
21+
.. _`nipy mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
22+
23+
.. ipython
24+
.. _ipython: http://ipython.scipy.org
25+
.. _`ipython github`: http://github.com/ipython/ipython
26+
.. _`ipython mailing list`: http://mail.scipy.org/mailman/listinfo/IPython-dev
27+
28+
.. dipy
29+
.. _dipy: http://nipy.org/dipy
30+
.. _`dipy github`: http://github.com/Garyfallidis/dipy
31+
.. _`dipy mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
32+
33+
.. nibabel
34+
.. _nibabel: http://nipy.org/nibabel
35+
.. _`nibabel github`: http://github.com/nipy/nibabel
36+
.. _`nibabel mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
37+
38+
.. marsbar
39+
.. _marsbar: http://marsbar.sourceforge.net
40+
.. _`marsbar github`: http://github.com/matthew-brett/marsbar
41+
.. _`MarsBaR mailing list`: https://lists.sourceforge.net/lists/listinfo/marsbar-users

doc/devel/gitwash/links.inc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. compiling links file
2+
.. include:: known_projects.inc
3+
.. include:: this_project.inc
4+
.. include:: git_links.inc

0 commit comments

Comments
 (0)