Shawn O. Pearce ff06c743dc Improve request-pull to handle non-rebased branches
This is actually a few different changes to request-pull,
making it slightly smarter:

 1) Minor cleanup of revision->base variable names, making it
    follow the head/headrev naming convention that is already
    in use.

 2) Compute the merge-base between the two revisions upfront
    and reuse that selected merge-base to create the diffstat.

 3) Refuse to generate a pull request for branches that have no
    existing relationship.  These aren't very common and would mess
    up our diffstat generation.

 4) Disable the PAGER when running shortlog and diff, as these
    would otherwise activate the pager for each command when
    git-request-pull is run on a tty.  Instead users can get the
    entire output paged (if desired) using `git -p request-pull`.

 5) Use shortlog rather than `git log | git shortlog` now that
    recent shortlog versions are able to run the revision listing
    internally.

 6) Attempt to resolve the input URL using the user's configured
    remotes.  This is useful if the URL you want the recipient to
    see is also the one you used to push your changes.  If not a
    config-file remote could easily be setup for the public URL
    and request-pull could be passed that name instead.

 7) Automatically guess and include the remote branch name in the
    body of the message.  We list the branch name immediately after
    the URL, making it easy for the recipient to copy and paste
    the entire line onto a `git pull` command line.  Rumor has it
    Linus likes this format, for exactly that reason.

    If multiple branches at the remote match $headrev we take the
    first one returned by peek-remote and assume it is suitable.

    If no branches are available we warn the user about the problem,
    but insert a static string that is not a valid branch name
    and would be obvious to anyone reading the message as being
    totally incorrect.  This allows users to still generate a
    template message without network access (for example) and
    hand-correct the bits that cannot be verified.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-05-03 23:27:03 -07:00
2007-05-03 23:26:54 -07:00
2007-05-03 23:26:54 -07:00
2007-05-03 22:36:32 -07:00
2007-02-03 21:49:54 -08:00
2007-05-03 23:26:54 -07:00
2007-04-21 17:38:00 -07:00
2007-04-29 01:34:59 -07:00
2007-04-22 10:44:56 -07:00
2007-04-21 17:38:00 -07:00
2007-04-29 01:52:43 -07:00
2007-02-27 22:15:42 -08:00
2007-04-29 01:52:43 -07:00
2007-03-17 00:34:19 -07:00
2007-04-07 02:26:24 -07:00
2007-03-20 22:17:47 -07:00
2007-02-24 01:42:06 -08:00
2007-04-25 23:31:45 -07:00
2006-05-01 22:29:16 -07:00
2007-04-25 21:39:43 -07:00
2007-04-22 22:16:14 -07:00
2007-05-03 23:26:54 -07:00
2007-04-25 21:39:43 -07:00
2007-03-27 13:00:13 -07:00
2007-04-25 21:39:43 -07:00
2006-05-15 12:32:13 -07:00
2007-04-21 17:21:10 -07:00
2007-05-03 23:26:54 -07:00
2007-04-22 22:16:14 -07:00
2007-04-24 00:08:16 -07:00
2007-04-23 22:14:24 -07:00
2007-04-23 21:39:28 -07:00
2007-05-03 23:26:54 -07:00
2007-05-02 11:27:31 -07:00
2007-02-03 21:49:54 -08:00
2007-04-07 02:29:40 -07:00
2007-04-23 21:39:28 -07:00
2007-04-25 23:31:45 -07:00
2007-04-30 15:58:37 -07:00
2007-01-30 21:03:11 -08:00
2007-04-30 17:30:02 -07:00
2007-04-24 00:08:16 -07:00
2006-09-27 23:59:09 -07:00
2007-03-27 16:57:57 -07:00
2007-03-07 10:47:10 -08:00
2007-03-07 10:47:10 -08:00
2007-04-25 21:39:43 -07:00
2006-06-26 14:58:41 -07:00
2007-04-07 02:29:40 -07:00
2007-03-19 02:48:37 -07:00
2007-04-24 00:08:49 -07:00
2007-04-24 00:08:49 -07:00
2007-04-10 12:48:14 -07:00
2007-03-07 10:47:10 -08:00
2007-02-08 17:48:22 -08:00
2007-04-21 17:21:10 -07:00
2007-04-25 23:27:07 -07:00
2007-04-25 21:39:43 -07:00
2007-04-25 21:39:43 -07:00
2007-03-12 23:40:18 -07:00
2007-03-10 22:07:26 -08:00
2007-04-25 23:31:45 -07:00
2007-04-24 00:08:49 -07:00
2006-03-25 16:35:43 -08:00
2007-05-01 02:59:08 -07:00
2007-04-21 17:42:02 -07:00
2007-03-03 19:47:46 -08:00

////////////////////////////////////////////////////////////////

	GIT - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used by any common UNIX command.  The fact that it is a
   mispronunciation of "get" may or may not be relevant.
 - stupid. contemptible and despicable. simple. Take your pick from the
   dictionary of slang.
 - "global information tracker": you're in a good mood, and it actually
   works for you. Angels sing, and a light suddenly fills the room.
 - "goddamn idiotic truckload of sh*t": when it breaks

Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations
and full access to internals.

Git is an Open Source project covered by the GNU General Public License.
It was originally written by Linus Torvalds with help of a group of
hackers around the net. It is currently maintained by Junio C Hamano.

Please read the file INSTALL for installation instructions.
See Documentation/tutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands,
and "man git-commandname" for documentation of each command.
CVS users may also want to read Documentation/cvs-migration.txt.

Many Git online resources are accessible from http://git.or.cz/
including full documentation and Git related tools.

The user discussion and development of Git take place on the Git
mailing list -- everyone is welcome to post bug reports, feature
requests, comments and patches to git@vger.kernel.org. To subscribe
to the list, send an email with just "subscribe git" in the body to
majordomo@vger.kernel.org. The mailing list archives are available at
http://marc.theaimsgroup.com/?l=git and other archival sites.

The messages titled "A note from the maintainer", "What's in
git.git (stable)" and "What's cooking in git.git (topics)" and
the discussion following them on the mailing list give a good
reference for project status, development direction and
remaining tasks.
Description
Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Readme 734 MiB
Languages
C 50.5%
Shell 38.7%
Perl 4.5%
Tcl 3.2%
Python 0.8%
Other 2.1%