git.git
18 years agoAdd "Index: " to the list of things that start a patch
Linus Torvalds [Thu, 23 Jun 2005 18:00:23 +0000 (11:00 -0700)]
Add "Index: " to the list of things that start a patch

This way we don't get it in the commit message, even if the patch had
been generated by cogito (or CVS, ugh) and people didn't add the proper
"---" marker.

18 years agoAvoid doing the "filelist" thing, since "git-apply" picks up the files automatically
Linus Torvalds [Thu, 23 Jun 2005 16:40:23 +0000 (09:40 -0700)]
Avoid doing the "filelist" thing, since "git-apply" picks up the files automatically

..and git-apply does a lot better job at it anyway.

Also, we break the comment/diff on a line that starts with "diff -", not
just on the "---" line.  Especially for git diffs, we actually want that
line in the diff.

(We should probably also break on "Index: ..." followed by "=====")

19 years agoapplypatch: use "--index" to actually make git-apply write the
Linus Torvalds [Sun, 5 Jun 2005 21:12:53 +0000 (14:12 -0700)]
applypatch: use "--index" to actually make git-apply write the
changes to the index file.

19 years agoapplypatch: use the new git-apply to apply patches
Linus Torvalds [Sun, 5 Jun 2005 21:09:03 +0000 (14:09 -0700)]
applypatch: use the new git-apply to apply patches

Let's test it with some real-world horror schenarios.

I'm crazy, I know.

19 years agocvs2git: use CVS (rather than RCS) to extract the different
Linus Torvalds [Tue, 31 May 2005 04:00:09 +0000 (21:00 -0700)]
cvs2git: use CVS (rather than RCS) to extract the different
file versions.

This allows you to do the conversion (although slowly) from
a remote repository, and besides, it's one less thing to worry
about when you don't need to look up the CVS Attic directories
etc.

19 years agocvs2git: fix character quoting
Linus Torvalds [Tue, 24 May 2005 19:57:12 +0000 (12:57 -0700)]
cvs2git: fix character quoting

We need to quote backslash and backtick too.

And inform the user about our progress, since converting a
big archive can take time. Doing the full mutt history took
just under eight minutes.

19 years agocvs2git: set timezone info to UTC, the way CVS does
Linus Torvalds [Tue, 24 May 2005 17:15:42 +0000 (10:15 -0700)]
cvs2git: set timezone info to UTC, the way CVS does

This should also mean that the conversion is now completely
defined by the CVS tree, and that two people doing a cvs2git
conversion on the same base will always get the same results
regardless of when or in what timezone they do it.

19 years agocvs2git: add support for GIT_COMMITTER_DATE
Linus Torvalds [Tue, 24 May 2005 16:59:55 +0000 (09:59 -0700)]
cvs2git: add support for GIT_COMMITTER_DATE

Of course, this requires a version of git that cares..

19 years agocvs2git: escape <<EOF messages, and work around cvsps branch handling
Linus Torvalds [Tue, 24 May 2005 16:36:33 +0000 (09:36 -0700)]
cvs2git: escape <<EOF messages, and work around cvsps branch handling

This escapes '$' characters in <<-handling, and gives preference to
the new branch when cvsps incorrectly reports a commit as originating
on an old branch.

19 years agoFix cvs2git branch handling
Linus Torvalds [Tue, 24 May 2005 16:06:51 +0000 (09:06 -0700)]
Fix cvs2git branch handling

.. and tell 'co' to shut up about the rcs noise.

This still leaves some branch issues up in the air: it looks like
cvsps has some questionable originating branch information, but I
don't know whether that's a cvsps bug or an actual bug in the
syslinux archive I'm using to test.

I'll let David Mansfield answer my questions about CVS. I'm a
total idiot when it comes to branches under CVS ("I'm pure!").

19 years agoAdd "cvs2git" program to convert a CVS archive into a GIT archive
Linus Torvalds [Tue, 24 May 2005 08:07:31 +0000 (01:07 -0700)]
Add "cvs2git" program to convert a CVS archive into a GIT archive

It's very hacky, and it needs lots of work, but it seems to have converted
Peter's "syslinux" archive successfully. Whether the end result is correct
or not is to be seen.

Tons of work still to do: do name conversion properly, and do tags etc.

And testing. Lots of testing.

19 years agoMake "applypatch" use the "-E" flag to patch.
Linus Torvalds [Wed, 18 May 2005 00:15:56 +0000 (17:15 -0700)]
Make "applypatch" use the "-E" flag to patch.

Always remove empty files, regardless of how the diff
showed them to have become empty.

19 years agoUpdate applypatch to use new GIT_-prefix environment variables.
Linus Torvalds [Tue, 17 May 2005 16:35:01 +0000 (09:35 -0700)]
Update applypatch to use new GIT_-prefix environment variables.

Avoid the warnings from newer git versions.

19 years agoGet AUTHOR_DATE from the email Date: line
Linus Torvalds [Mon, 2 May 2005 04:42:53 +0000 (21:42 -0700)]
Get AUTHOR_DATE from the email Date: line

Now that git does pretty reliable date parsing, we might as well get
the date from the email itself. Of course, it's still questionable
whether the date on the email is all that relevant, but it's certainly
no worse than taking the commit date.

19 years agoAdd "stripspace" program to clean up email commentary
Linus Torvalds [Sat, 30 Apr 2005 17:58:41 +0000 (10:58 -0700)]
Add "stripspace" program to clean up email commentary

Remove multiple empty lines, and empty lines at beginning and end.

19 years agoFix up "applypatch" for the big git rename
Linus Torvalds [Fri, 29 Apr 2005 21:56:18 +0000 (14:56 -0700)]
Fix up "applypatch" for the big git rename

Add "git-" prefixes to git commands.

19 years ago[PATCH] make dotest more amenable to commit message editing
James Bottomley [Wed, 20 Apr 2005 15:23:00 +0000 (08:23 -0700)]
[PATCH] make dotest more amenable to commit message editing

This makes "dotest" a lot nicer to sue, especially for people who were
used to editing the commit comments after-the-fact in BK, which git
doesn't apply.

he syntax is

dotest [-q] mailbox [signoff]

so the command line operates exactly as you're used to.  If you supply
the -q it will query before applying (I also added the [a]pply all the
rest option).  If the signoff file is absent, no signoff line gets
added.

There's also one addition in this:  a checkout-cache line.  I added that
for poor saps like me whose laptop takes minutes to checkout a full
build tree, so I can run dotest in a directory with no checked out
files.

19 years agoAdd quotes around the subject line that we print out as being applied.
Linus Torvalds [Tue, 19 Apr 2005 00:40:32 +0000 (17:40 -0700)]
Add quotes around the subject line that we print out as being applied.

My brain just flipped when it tried to read the "Applying" as part
of the explanation of the patch, and the sentence didn't make any
sense. The quotes make it clear what's going on.

19 years agoAdd "dotest" and "applypatch" scripts to actually make things useful.
Linus Torvalds [Mon, 18 Apr 2005 23:11:32 +0000 (16:11 -0700)]
Add "dotest" and "applypatch" scripts to actually make things useful.

Also updates "mailinfo" to write the file list.

19 years agoAdd "applypatch" and "dotest" scripts to tie it all together.
Linus Torvalds [Tue, 12 Apr 2005 08:40:20 +0000 (01:40 -0700)]
Add "applypatch" and "dotest" scripts to tie it all together.

This should be getting it all pretty close to a working setup.

19 years agoStart of early patch applicator tools for git.
Linus Torvalds [Tue, 12 Apr 2005 06:46:50 +0000 (23:46 -0700)]
Start of early patch applicator tools for git.

I looked a bit at my old BK tools for the same thing, but they were
just so horrid in many ways that I largely rewrote it all and these
tools do things a bit differently. Instead of aggressively piping
data from one process to another (which was clever but very hard
to follow), this first just splits out the mbox into many smaller
email files, and then does some scripts on these temporary files.