Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit aa9faaa

Browse files
author
Matthias Koeppe
committed
src/doc/en/developer: move "git the hard way" earlier, present "git-trac" only as an additional convenience
1 parent fc7aa4f commit aa9faaa

File tree

7 files changed

+48
-87
lines changed

7 files changed

+48
-87
lines changed

src/doc/en/developer/advanced_git.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ This chapter covers some advanced uses of git that go beyond what is
1010
required to work with branches. These features can be used in Sage
1111
development, but are not really necessary to contribute to Sage. If
1212
you are just getting started with Sage development, you should read
13-
:ref:`chapter-walkthrough` instead. If you are new to git, please see
14-
:ref:`chapter-manual-git`.
13+
:ref:`chapter-walkthrough` and :ref:`chapter-manual-git` instead.
1514

1615

1716
Detached Heads and Reviewing Tickets

src/doc/en/developer/git_background.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Tips and References
77
===================
88

99
This chapter contains additional material about the git revision
10-
control system. It is not necessary if you stick with the Sage
11-
development scripts. See :ref:`chapter-git-setup` for the minimal
10+
control system. See :ref:`chapter-git-setup` for the minimal
1211
steps needed for Sage development.
1312

1413

src/doc/en/developer/git_trac.rst

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,21 @@
22

33
.. _chapter-git_trac:
44

5-
=======================================
6-
Collaborative Development with Git-Trac
7-
=======================================
8-
9-
Sometimes you will only want to work on local changes to Sage, for
10-
your own private needs. However, typically it is beneficial to
11-
share code and ideas with others; the manner in which the
12-
`Sage project <https://www.sagemath.org>`_ does this (as well as fixing
13-
bugs and upgrading components) is in a very collaborative and
14-
public setting on `the Sage Trac server <https://trac.sagemath.org>`_
15-
(the Sage bug and enhancement tracker).
16-
17-
One can use ``git`` :ref:`the hard way <chapter-manual-git>` for this,
18-
but this section explains how to use the helper ``git trac`` command, which
19-
simplifies many of the most common actions in collaboration on Sage. Some
20-
of the :ref:`tutorials <section-git-tutorials>` we suggest may be helpful
21-
in navigating what they are for.
22-
23-
Most of the commands in the following section will not work unless
24-
you have an account on Trac. If you want to contribute to Sage, it
25-
is a good idea to get an account now (see :ref:`section-trac-account`).
5+
====================================
6+
Optional: Using the Git-Trac Command
7+
====================================
268

9+
Git is a separate project from trac, and the two do not know how to
10+
talk to each other. To simplify the development, we have a special
11+
``git trac`` subcommand for the git suite. Note that this really is
12+
only to simplify interaction with our trac issue management, you can
13+
perform every development task with just git and a web browser.
2714

2815
.. _section-git_trac-install:
2916

3017
Installing the Git-Trac Command
3118
===============================
3219

33-
Git is a separate project from trac, and the two do not know how to
34-
talk to each other. To simplify the development, we have a special
35-
``git trac`` subcommand for the git suite. Note that this really is
36-
only to simplify interaction with our trac issue management, you can
37-
perform every development task with just git and a web browser. See
38-
:ref:`chapter-manual-git` instead if you prefer to do everything by
39-
hand::
40-
4120
[user@localhost]$ git clone https://github.com/sagemath/git-trac-command.git
4221
Cloning into 'git-trac-command'...
4322
[...]
@@ -149,10 +128,6 @@ secured with SSH keys, which you must have set up as in
149128
:ref:`section-trac-ssh-key`. Read-only access happens through the
150129
fetch url and does not require SSH.
151130

152-
Finally, if you do not want to use the ``git trac`` subcommand at all
153-
then you can set up the remote by hand as described in the section on
154-
:ref:`section-git-trac`.
155-
156131

157132
Trac Tickets and Git Branches
158133
=============================

src/doc/en/developer/index.rst

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,12 @@ development!
5959
need to learn about revision control; we use the software Git for this
6060
purpose.
6161

62-
- :ref:`Here is <chapter-walkthrough>` an overview of our development flow.
63-
- :ref:`Unfamiliar with Git or revision control? <chapter-git_trac>`
6462
- :ref:`How to install it? <section-git-install>`
6563
- :ref:`How to configure it for use with Trac? <section-git-setup-name>`
64+
- :ref:`Here is <chapter-walkthrough>` an overview of our development flow.
6665

67-
Git for Sage development
68-
========================
66+
Git and Trac for Sage development
67+
=================================
6968

7069
First Steps with Git
7170
--------------------
@@ -78,41 +77,24 @@ Sage uses git for version control.
7877
git_setup
7978
walk_through
8079

81-
The git-trac command
82-
--------------------
83-
84-
Putting your local changes on a Trac ticket.
85-
86-
.. toctree::
87-
:maxdepth: 2
88-
89-
git_trac
90-
9180
.. _section-git-tricks-and-tips:
9281

93-
Git Tricks & Tips
94-
-----------------
82+
Using Git with Trac
83+
-------------------
9584

96-
When ``git trac`` is not enough.
85+
To contribute back your changes to Sage source code to the project,
86+
you will need a ticket on the
87+
`Sage trac server <http://trac.sagemath.org>`_.
9788

9889
.. toctree::
9990
:maxdepth: 2
10091

92+
trac
10193
manual_git
10294
git_background
10395
advanced_git
10496
workflows
105-
106-
Sage Trac and tickets
107-
=====================
108-
109-
All changes to Sage source code require a ticket on the
110-
`Sage trac server <http://trac.sagemath.org>`_.
111-
112-
.. toctree::
113-
:maxdepth: 2
114-
115-
trac
97+
git_trac
11698

11799

118100
.. _section-writing-code-for-sage:

src/doc/en/developer/manual_git.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22

33
.. _chapter-manual-git:
44

5-
================
6-
Git the Hard Way
7-
================
5+
===================================
6+
Using Git with the Sage Trac Server
7+
===================================
88

9-
If you have no ``git`` experience, we recommend you to read the
10-
:ref:`chapter-git_trac` chapter instead. The ``git-trac`` simplifies the
11-
interaction with our git and trac servers.
12-
13-
If you want to contribute using ``git`` only, you are at the right place. This
14-
chapter will tell you how to do so, assuming some basic familiarity with ``git``. In
15-
particular, you should have read :ref:`chapter-walkthrough` first.
16-
17-
Randall Munroe has provided a `basic overview <http://xkcd.com/1597/>`_.
9+
Now we continue our introduction to git from :ref:`chapter-walkthrough`.
1810

1911
In the following, we assume that you are in the source directory of Sage (``SAGE_ROOT``),
2012
obtained either from a source tarball or by cloning a Sage git repository

src/doc/en/developer/trac.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
The Sage Trac Server
77
====================
88

9-
All changes to Sage source code have to go through the `Sage Trac
10-
development server <https://trac.sagemath.org>`_. The purpose
11-
of the Sage trac server is to
9+
Sometimes you will only want to work on local changes to Sage, for
10+
your own private needs. However, typically it is beneficial to
11+
share code and ideas with others; the manner in which the
12+
`Sage project <https://www.sagemath.org>`_ does this (as well as fixing
13+
bugs and upgrading components) is in a very collaborative and
14+
public setting on `the Sage Trac server <https://trac.sagemath.org>`_
15+
(the Sage bug and enhancement tracker).
16+
17+
The purpose of the Sage trac server is to
1218

1319
1. Provide a place for discussion on issues and store a permanent
1420
record.
@@ -413,7 +419,7 @@ Only the Sage release manager will close tickets. Most likely, this is
413419
not you nor will your trac account have the necessary permissions. If
414420
you feel strongly that a ticket should be closed or deleted, then
415421
change the status of the ticket to *needs review* and change the
416-
milestone to *sage-duplictate/invalid/wontfix*. You should also
422+
milestone to *sage-duplicate/invalid/wontfix*. You should also
417423
comment on the ticket, explaining why it should be closed. If another
418424
developer agrees, he sets the ticket to *positive review*.
419425

src/doc/en/developer/walk_through.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,25 @@ This section is a concise overview of the Sage development process. In
1010
it, we will see how to make changes to the Sage source code and record
1111
them in the ``git`` revision control system.
1212

13-
In the following section on :ref:`chapter-git_trac` we will look at
14-
communicating these changes back to the Sage project. We also have a handy
15-
`one-page "cheat sheet"
13+
We also have a handy `one-page "cheat sheet"
1614
<http://github.com/sagemath/git-trac-command/raw/master/doc/git-cheat-sheet.pdf>`_
1715
of commonly used git commands that you can print out and leave on your
1816
desk. We have some :ref:`recommended references and tutorials
1917
<section-git-tutorials>` as well.
2018

21-
You can alternatively fork and create a merge request at
22-
`GitLab <https://gitlab.com/sagemath/sage>`_ which will automatically fetch
23-
your code and open a ticket on our trac server.
19+
In the following sections on :ref:`chapter-sage-trac` and
20+
:ref:`section-git-tricks-and-tips` we will look at communicating these
21+
changes back to the Sage project. All changes to Sage source code
22+
have to go through the `Sage Trac development server
23+
<https://trac.sagemath.org>`_.
24+
25+
As an alternative to using the Trac server directly, you can fork and
26+
create a Merge Request (MR) at `GitLab <https://gitlab.com/sagemath/sage>`_
27+
which will automatically fetch your code and open a ticket on our trac
28+
server.
29+
30+
Pull Requests (PR) on GitHub are currently not supported by the
31+
SageMath project.
2432

2533

2634
.. _section-walkthrough-setup-git:

0 commit comments

Comments
 (0)