all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f76187f0b859aee4c634c769c68f0437be26375a 4427 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
 
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.

* 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 trunks", it is
preferred that you take your branch's diff, apply it to the trunk, 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 trunk until you are done with the
feature.  Unless you really need some change that was done on the
trunk 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
Bazaar will take care of the rest.  Bazaar 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 trunk

[The section on git merge procedure has not yet been written.
Among other things, the ChangeLog file is now automatically generated.]

Inspect the change log entries (e.g. in case too many entries have been
included or whitespace between entries needs fixing). If someone made
multiple change log entries on different days in the branch, you may
wish to collapse them all to a single entry for that author in the
trunk (because in the trunk they all appear under the same date).
Obviously, if there are multiple changes to the same file by different
authors, don't break the logical ordering in doing this.

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 trunk or branch version, then run
`make -C lisp autoloads' to update the md5sums to the correct trunk
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.

debug log:

solving f76187f ...
found f76187f in https://yhetil.org/emacs/54B379E5.8000609@cs.ucla.edu/
found 2d4cc2a in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 2d4cc2a55cf7caa688f7a4de8227e167ee9bb19c	admin/notes/repo

applying [1/1] https://yhetil.org/emacs/54B379E5.8000609@cs.ucla.edu/
diff --git a/admin/notes/repo b/admin/notes/repo
index 2d4cc2a..f76187f 100644

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

index at:
100644 f76187f0b859aee4c634c769c68f0437be26375a	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.