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

288 Коммитов

Автор SHA1 Сообщение Дата
Tom Preston-Werner 5071bf9fbf Version bump to 1.1.1 2009-03-31 09:54:40 -07:00
Tom Preston-Werner 05372bffe2 exclude test dir from gem manifest 2009-03-31 09:54:23 -07:00
Tom Preston-Werner ac8700fe97 Regenerated gemspec for version 1.1.0 2009-03-29 21:07:22 -07:00
Tom Preston-Werner 5bace11384 Version bump to 1.1.0 2009-03-29 21:07:11 -07:00
Tom Preston-Werner 90c80e0348 update history for 1.1.0 release 2009-03-29 21:07:04 -07:00
Tom Preston-Werner c02281a929 match version file to history 2009-03-29 21:06:11 -07:00
Tom Preston-Werner 809025eaf6 a_commit and b_commit are really a_blob and b_blob 2009-03-03 16:14:54 -08:00
Tom Preston-Werner cdf9d1663d update history 2009-02-28 20:00:23 -08:00
Tom Preston-Werner 5a79450392 Merge commit '32c925032560acb95905878af1d45384e0735c64' into next 2009-02-28 19:57:07 -08:00
Tom Preston-Werner 66984b32e6 update history 2009-02-28 19:52:03 -08:00
Tom Preston-Werner 37b967c251 better comments for Repo#archive_to_file 2009-02-28 19:51:23 -08:00
Tom Preston-Werner 81a0667372 Merge commit '73b32da6cb22abc88fbe7588be97dfc169da17c2' into next 2009-02-28 19:43:47 -08:00
Tom Preston-Werner ce48ebc8f9 update history 2009-02-28 19:36:22 -08:00
Tom Preston-Werner fd39630afd Merge commit '1ab3ab760dc144d252299afb729269aa8d3a1c48' into next 2009-02-28 19:35:44 -08:00
Tom Preston-Werner 94d27ea2b8 update history 2009-02-28 19:34:59 -08:00
Tom Preston-Werner bc9fb8b75e merge d34d53 and fix whitespace conflicts 2009-02-28 19:28:15 -08:00
Tom Preston-Werner 007473c01a update history 2009-02-28 16:10:34 -08:00
Tom Preston-Werner b6556f1380 Merge branch 'js/master' into next 2009-02-28 15:57:04 -08:00
Tom Preston-Werner 6bb41e4c10 convert readme to markdown 2009-02-28 15:14:10 -08:00
Voker57 d34d5300bc Added <=> method, needed for sorting tree 2009-02-17 23:55:18 +03:00
Voker57 dbfeb5ce9b Added two shortcut methods, for picking trees/blobs only 2009-02-17 23:54:45 +03:00
Voker57 a6015edab4 Fixed gem builing 2009-02-17 23:52:15 +03:00
Johan Sørensen cdb0d3e4d5 Fixed test that relied on using git v1.6.0 2009-02-14 11:53:33 +01:00
Johan Sørensen 5eaf21e9aa Added a shortcut for commit_stats as Commit#stats 2009-02-14 11:50:12 +01:00
Johan Sørensen 794dcb628b Further Ruby 1.9 compat; IO#getc can return a string in 1.9 2009-02-14 11:49:18 +01:00
Johan Sørensen a17e860300 Rename the GitRuby Mmap class to FileWindow, since it's not really mmap'ed at
all (except for any OS level caching)
2009-02-14 11:49:18 +01:00
Johan Sørensen 3838109f4a Add a #basename method to Submodule, Blob and Tree for retrieving the name
without the path
2009-02-14 11:49:17 +01:00
Johan Sørensen 6ae7c960b1 Make Grit::Submodule grasp the concept of non-unix lineendings 2009-02-14 11:49:17 +01:00
Johan Sørensen 2adfc81694 Added Repo#commit_deltas_from as a (fairly expensive and lazy) way of getting
the commits that differ between two different repositories
2009-02-14 11:49:16 +01:00
Johan Sørensen ed76397875 do some mild shell escaping when running commands 2009-02-14 11:49:16 +01:00
Johan Sørensen 645bd3ad53 set an even lower timeout in the test_raises_on_slow_shell test, to make it
pass on machines faster than an Atari
2009-02-14 11:49:16 +01:00
Johan Sørensen 85bc638ba4 Fixed annoying ruby1.9 loadpath errors 2009-02-14 11:49:16 +01:00
Brian Chapados a78dabfad0 Open binary files with the 'b' option to force binary string encoding (ASCII-8BIT) 2009-02-14 11:49:16 +01:00
Brian Chapados 4ab40474cf Use [<string>] instead of <string>.to_a to create an array from a string
String#to_a is not defined in Ruby 1.9
2009-02-14 11:49:16 +01:00
Brian Chapados 31a965cd15 Define String#getord(offset) for accessing a single byte at a String offset
Strings have changed significantly in Ruby 1.9.  The main issues related
to Grit are encodings, and the [] method.  The GitRuby implementation
currently uses code such as "buf[offset]" to access a byte (1 uint8_t byte in C)
of data. It would be nice to just use String#getbyte(offset), but this method is not
sensitive to the string encoding.  The default encoding for Ruby strings
is UTF-8, and I can't figure out how to make sure that all of the encodings
are correct such that String#getbyte will return the right value.

In Ruby 1.8, String[offset] returns the integer code of the character at offset.
In Ruby 1.9, String[offset] returns the actual character at offset. To get the integer
value, we need to call String#ord, which returns the int code of the first char.
Thus, to get Ruby 1.8 behavior in Ruby 1.9, we would need to call String[offset].ord.
My solution for now is just to define a getord(offset) method in a version dependent
manner, and use this in place of String[offset].  It's somewhat hackish, but
I can't think of a better solution right now.
2009-02-14 11:49:16 +01:00
Brian Chapados 470cf968b6 Remove trailing ':' from when clauses in case statement 2009-02-14 11:49:15 +01:00
Chris Wanstrath 85fea86e27 Make ls_tree ignore nils 2009-02-13 19:38:05 -08:00
Chris Wanstrath c0f65cf752 Remove stray `puts` 2009-02-13 19:36:14 -08:00
Chris Wanstrath f2dd525a36 Update version and History.txt 2009-02-13 16:02:41 -08:00
Chris Wanstrath d76b71c087 Add Grit::Commit#to_patch 2009-02-13 15:58:50 -08:00
Chris Wanstrath ef447cf909 Whoops - use the variable we already created for clarity 2009-02-13 15:49:37 -08:00
Chris Wanstrath b4e2886c27 Simplify tag test a tad 2009-02-13 15:46:59 -08:00
Chris Wanstrath a683a584c0 Add packed-refs annotated tag support. 2009-02-13 15:45:17 -08:00
Chris Wanstrath 2c17813002 Add support for annotated tags to Grit::Tag 2009-02-13 15:13:36 -08:00
Tom Preston-Werner 62824a73d5 Regenerated gemspec for version 1.0.2 2009-02-10 22:55:11 -08:00
Tom Preston-Werner fd82cce7bf Version bump to 1.0.2 2009-02-10 22:55:00 -08:00
Tom Preston-Werner dfd37f45a0 dynamic version method 2009-02-10 22:53:41 -08:00
Tom Preston-Werner c584965125 fix dates in history 2009-02-10 22:48:18 -08:00
Tom Preston-Werner 4d4bca4abd Regenerated gemspec for version 1.0.1 2009-02-10 16:35:28 -08:00
Tom Preston-Werner 12a9eee718 add diff-lcs dep 2009-02-10 16:35:00 -08:00