all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob bd0d15a742bae114b93cb0261448cc127b68f754 5443 bytes (raw)
name: admin/notes/repo 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
 
NOTES ON COMMITTING TO EMACS'S REPOSITORY    -*- outline -*-

** elpa

This branch does not contain a copy of Emacs, but of the Emacs Lisp
package archive (elpa.gnu.org).  See admin/notes/elpa for further
explanation, and the README file in the branch for usage
instructions.

* Install changes only on one branch, let them get merged elsewhere if needed.

In particular, install bug-fixes only on the release branch (if there
is one) and let them get synced to the master; do not install them by
hand on the master as well.  E.g. if there is an active "emacs-24" branch
and you have a bug-fix appropriate for the next emacs-24.x release,
install it only on the emacs-24 branch, not on the master as well.

Installing things manually into more than one branch makes merges more
difficult.

http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01124.html

The exception is, if you know that the change will be difficult to
merge to the master (eg because the master code has changed a lot).
In that case, it's helpful if you can apply the change to both master
and branch yourself (when committing the branch change, indicate
in the commit log that it should not be merged to the master, by
including the phrase "Not to be merged to master", or any other phrase
that matches "merge").

* Installing changes from your personal branches.

If your branch has only a single commit, or many different real
commits, it is fine to do a merge.  If your branch has only a very
small number of "real" commits, but several "merge from masters", it is
preferred that you take your branch's diff, apply it to the master, and
commit directly, not merge.  This keeps the history cleaner.

In general, when working on some feature in a separate branch, it is
preferable not to merge from master until you are done with the
feature.  Unless you really need some change that was done on the
master while you were developing on the branch, you don't really need
those merges; just merge once, when you are done with the feature, and
Git will take care of the rest.  Git is much better in this than CVS,
so interim merges are unnecessary.

Or use shelves; or rebase; or do something else.  See the thread for
yet another fun excursion into the exciting world of version control.

http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00086.html

* Installing changes from gnulib

Some of the files in Emacs are copied from gnulib.  To synchronize
these files from the version of gnulib that you have checked out into
a sibling directory of your branch, type "admin/merge-gnulib"; this
will check out the latest version of gnulib if there is no sibling
directory already.  It is a good idea to run "git status" afterwards,
so that if a gnulib module added a file, you can record the new file
using "git add".  After synchronizing from gnulib, do a "make" in the
usual way.

To change the set of gnulib modules, change the GNULIB_MODULES
variable in admin/merge-gnulib before running it.

If you remove a gnulib module, or if a gnulib module
removes a file, then remove the corresponding files by hand.

* How to merge changes from emacs-24 to master

[The section on git merge procedure has not yet been written.]

You may see conflicts in autoload md5sums in comments.  Strictly
speaking, the right thing to do is merge everything else, resolve the
conflict by choosing either the master or branch version, then run
'make -C lisp autoloads' to update the md5sums to the correct master
value before committing.

* Re-adding a file that has been removed from the repository

Let's suppose you've done:

git rm file; git commit -a

You can just restore a copy of the file and then re-add it;
git does not have per-file history so this will not harm
anything.

Alternatively, you can do

git revert XXXXX

where XXXXX is the hash of the commit in which file was removed.
This backs out the entire changeset the deletion was part of,
which is often more appropriate.

* Undoing a commit (uncommitting)

If you have not pushed the commit, you may be able to use 'git reset
--hard' with a hash argument to revert the your local repo copy to the
pre-commit state.

If you have pushed  commit, resetting will be ineffective because it
will only vanish the commit in your local copy.  Instead, use 'git
revert', giving it the commit ID as argument. This will create a
new commit that backs out the change. Then push that.

Note that git will generate a log message for the revert that includes
a git hash.  Please edit this to refer to the commit by the first line
of its log comment, or by committer and date, or by something else
that is not the hash.  As noted previously, it is best to avoid hashes
in comments in case we someday have to change version-control systems
again.

* Bisecting

This is a semi-automated way to find the revision that introduced a bug.
Browse 'git help bisect' for technical instructions.

* Maintaining ChangeLog history

Older ChangeLog entries are kept in history files named ChangeLog.1,
ChangeLog.2, etc., and can be edited just as any other source files
can.  Newer ChangeLog entries are stored in the repository as commit
messages, which cannot be edited directly.

'make gen-ChangeLog' copies newer ChangeLog entries into a file
'ChangeLog' that is intended to be put into the distribution tarball.
This ChangeLog file is not put into the repository.  To correct an
error in a newer ChangeLog entry, edit build-aux/git-log-fix.

debug log:

solving bd0d15a ...
found bd0d15a in https://yhetil.org/emacs/56DFD78F.40205@cs.ucla.edu/
found 3ab3da7 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 3ab3da78071752842cf77aca1210a4686e074336	admin/notes/repo

applying [1/1] https://yhetil.org/emacs/56DFD78F.40205@cs.ucla.edu/
diff --git a/admin/notes/repo b/admin/notes/repo
index 3ab3da7..bd0d15a 100644

Checking patch admin/notes/repo...
Applied patch admin/notes/repo cleanly.

index at:
100644 bd0d15a742bae114b93cb0261448cc127b68f754	admin/notes/repo

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.