Граф коммитов

440 Коммитов

Автор SHA1 Сообщение Дата
rick 91940c2cc1 Release 2.4.1 2011-01-13 12:56:04 -08:00
rick 18bfda9d93 add docs to the patch methods 2011-01-13 00:34:04 -08:00
rick 6ce2e78ba1 mark this day in history 2011-01-13 00:27:40 -08:00
rick 3392866089 when #check_applies fails, add the exitstatus to the accumulated status return value 2011-01-13 00:07:36 -08:00
rick 6684afe506 replace the old #raw_git stuff with #native calls for the git patching methods 2011-01-13 00:02:49 -08:00
rick 6ce0e43003 add tests for git patching 2011-01-12 23:40:07 -08:00
Tom Preston-Werner a3c51391cf Release 2.4.0 2011-01-06 16:29:18 -08:00
Scott Chacon fd4e32e6c1 open3_detach is no longer with us 2011-01-06 15:20:43 -08:00
Scott Chacon e2585cd57a v2.3.2 2011-01-06 15:11:23 -08:00
Ryan Tomayko a9c027ced5 Blame loads all commits in single Repo#batch call 2010-12-23 05:56:12 -08:00
Ryan Tomayko 9a4fc901f2 update History.txt for exec-direct branch changes 2010-12-23 05:52:23 -08:00
Ryan Tomayko d53233ced5 Merge remote branch 'origin/exec-direct' 2010-12-23 05:38:59 -08:00
Ryan Tomayko aa0e16982d get jruby working to the point it was before 2010-12-21 02:42:36 -08:00
Ryan Tomayko 3ed77ebceb pull pipe logic out into popen4-ish method 2010-12-21 01:50:02 -08:00
Ryan Tomayko 5cdf67cc5c better process :timeout and :max tests 2010-12-20 03:49:19 -08:00
Ryan Tomayko b43357b8db fix bad signal arity 2010-12-20 03:46:10 -08:00
Ryan Tomayko 0b98a12361 use native Process::spawn on Ruby 1.9 2010-12-19 05:44:42 -08:00
Ryan Tomayko 7dd3d35726 get git_max_size support working again 2010-12-19 05:29:59 -08:00
Ryan Tomayko 95efc13406 get command timeout support working again 2010-12-19 05:29:02 -08:00
Ryan Tomayko 00da68df23 open3_detach.rb no longer needed 2010-12-19 04:19:02 -08:00
Ryan Tomayko 6a9b7f4bb7 Grit::Git uses Grit::Process for all native command invocations 2010-12-19 04:19:02 -08:00
Ryan Tomayko 2854f044ed refactor new exec logic into Grit::Process class
Pretty awesome. And the select(2) based implementation will fix a
long-standing bug where the grit process will hang when a git
process writes more than PIPE_BUF bytes to stderr or when the input
written to the git process's stdin exceeds PIPE_BUF. The old popen3
based logic writes all of stdin, then reads all of stdout, then
reads all of stderr so everything except stdout had to come in under
PIPE_BUF. This hasn't been much of an issue but is critical to our
plans on using `git cat-file --batch' and writing a bunch of SHA1s
on stdin.

Also moving toward using a common spawn method interface that's a
compatible subset of the Process.spawn method built into Ruby >=
1.9.1. The hope is that most non-MRI platforms will eventually
support Process.spawn out of the box and the ones that don't have
backports.
2010-12-19 04:18:25 -08:00
Ryan Tomayko c8306fe8d2 open3 based Git#run method also supports :input option 2010-12-18 20:36:02 -08:00
Ryan Tomayko df91441aba Repo#batch uses new input option instead of block
This is mostly so it works over RPC.
2010-12-18 20:04:47 -08:00
Ryan Tomayko 2fb7d5d232 handle git process input that exceeds max pipe buffer 2010-12-18 20:00:30 -08:00
Ryan Tomayko a3d63a605b don't leave zombies around when testing support for fork(2) 2010-12-14 22:39:56 -08:00
Ryan Tomayko 3f4efb2664 emulate native :env option when fork not available 2010-12-12 05:54:16 -08:00
Ryan Tomayko f955066725 avoid searching for git binary at load time 2010-12-12 05:42:01 -08:00
Ryan Tomayko 889adf545e Git#native can optionally raise an exception when command exits non-zero 2010-12-09 17:32:55 -08:00
Ryan Tomayko 96f604c007 Git#native takes environment for git child process 2010-12-09 17:05:43 -08:00
Ryan Tomayko ce31d0d54a separate argv in calls to Git#native 2010-12-09 15:43:48 -08:00
Ryan Tomayko 1cfcc1b802 avoid /bin/sh + escaping; exec git commands directly
This removes some overhead from all native git calls in the
following ways:

 - Removes a fork previously performed by Open3, which double
   forks to avoid needing to Process::wait.
 - Removes the need to shell escape arguments, since the git
   process's argv is passed explicitly as an array.
 - Removes the /bin/sh process (1 fork/exec)

Additionally, these changes allow obtaining the git process's exit
status, available as $? after any native git command invocations.
2010-12-09 15:30:53 -08:00
Ryan Tomayko 2296c23d92 locate git_binary on PATH at boot
Avoids starting a /bin/sh and /usr/bin/env process on each
native command invocation, and will allow exec'ing the
command directly.
2010-12-09 15:30:53 -08:00
Ryan Tomayko 6b7dff52aa update History.txt with bug fix merges 2010-12-09 13:50:17 -08:00
Ryan Tomayko e3be659a93 Merge remote branch 'ohnobinki/master' 2010-12-09 13:47:15 -08:00
Ryan Tomayko ac394d42a8 Merge remote branch 'koraktor/fix-init-bare' 2010-12-09 13:43:21 -08:00
Ryan Tomayko 3b94889cab Merge commit 'bfe14d6403fd701cb131' 2010-12-09 13:38:43 -08:00
rick e2ad571c4d less fragile actor output test 2010-12-08 16:17:06 -08:00
Ryan Tomayko 034fc81903 typo 2010-11-23 21:17:22 -08:00
Ryan Tomayko 7fc2b567f3 fix relative alternates paths
Relative paths in a <repo>.git/objects/info/alternates file are to
be expanded relative to the <repo>.git/objects directory.
Previously, they were expanded relative to the <repo>.git directory.

The current code checks in both locations for backward compatibility
with grit <= 2.3.0 but I'd rather rip it out completely.
2010-11-23 16:51:36 -08:00
Ryan Tomayko 62d2ce1cd1 avoid exists check when loading alternates 2010-11-22 16:04:08 -08:00
Martin Traverso bfe14d6403 fix issue where Repo#diff skips the first diff 2010-11-05 23:10:26 -07:00
rick 8d5e137b26 fix regression in Grit::Index#commit 2010-11-01 10:48:20 -07:00
Sebastian Staudt d6a479d78a Fixed and improved Repo.init_bare tests 2010-11-01 09:43:20 +01:00
Sebastian Staudt d22fa1df0e Fixed Repo.init_bare for non ".git" suffixes 2010-11-01 09:23:22 +01:00
rick 2ed88699f6 document rtomayko's perf enhancements 2010-10-28 12:57:56 -07:00
rick 589ab1e601 Merge branch 'perf' 2010-10-28 12:56:45 -07:00
rick 22a06b528c fix regression with actor argument in Grit::Index#commit 2010-10-28 12:46:26 -07:00
rick aac47d734a set parent correctly from options passed to Grit::Index#commit 2010-10-22 15:05:37 +02:00
rick 1546764420 update history 2010-10-22 14:09:37 +02:00