git 1.0.5 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of git might be problematic. Click here for more details.
- data/README +7 -1
- data/lib/git.rb +14 -0
- data/lib/git/base.rb +59 -44
- data/lib/git/branch.rb +3 -5
- data/lib/git/branches.rb +4 -13
- data/lib/git/diff.rb +20 -17
- data/lib/git/lib.rb +147 -111
- data/lib/git/log.rb +40 -17
- data/lib/git/object.rb +70 -85
- data/lib/git/remote.rb +1 -3
- data/lib/git/stash.rb +2 -1
- data/lib/git/stashes.rb +5 -10
- data/lib/git/status.rb +7 -15
- metadata +42 -1106
- data/doc/classes/Git.html +0 -378
- data/doc/classes/Git.src/M000001.html +0 -18
- data/doc/classes/Git.src/M000002.html +0 -18
- data/doc/classes/Git.src/M000003.html +0 -18
- data/doc/classes/Git.src/M000004.html +0 -18
- data/doc/classes/Git/Author.html +0 -175
- data/doc/classes/Git/Base.html +0 -1764
- data/doc/classes/Git/Base.src/M000076.html +0 -18
- data/doc/classes/Git/Base.src/M000077.html +0 -21
- data/doc/classes/Git/Base.src/M000078.html +0 -30
- data/doc/classes/Git/Base.src/M000079.html +0 -19
- data/doc/classes/Git/Base.src/M000080.html +0 -25
- data/doc/classes/Git/Base.src/M000081.html +0 -18
- data/doc/classes/Git/Base.src/M000082.html +0 -18
- data/doc/classes/Git/Base.src/M000083.html +0 -18
- data/doc/classes/Git/Base.src/M000084.html +0 -20
- data/doc/classes/Git/Base.src/M000085.html +0 -22
- data/doc/classes/Git/Base.src/M000086.html +0 -27
- data/doc/classes/Git/Base.src/M000087.html +0 -18
- data/doc/classes/Git/Base.src/M000091.html +0 -18
- data/doc/classes/Git/Base.src/M000092.html +0 -18
- data/doc/classes/Git/Base.src/M000093.html +0 -18
- data/doc/classes/Git/Base.src/M000094.html +0 -18
- data/doc/classes/Git/Base.src/M000095.html +0 -18
- data/doc/classes/Git/Base.src/M000096.html +0 -18
- data/doc/classes/Git/Base.src/M000097.html +0 -18
- data/doc/classes/Git/Base.src/M000098.html +0 -18
- data/doc/classes/Git/Base.src/M000099.html +0 -18
- data/doc/classes/Git/Base.src/M000100.html +0 -18
- data/doc/classes/Git/Base.src/M000101.html +0 -18
- data/doc/classes/Git/Base.src/M000102.html +0 -19
- data/doc/classes/Git/Base.src/M000103.html +0 -18
- data/doc/classes/Git/Base.src/M000104.html +0 -19
- data/doc/classes/Git/Base.src/M000105.html +0 -18
- data/doc/classes/Git/Base.src/M000106.html +0 -18
- data/doc/classes/Git/Base.src/M000107.html +0 -18
- data/doc/classes/Git/Base.src/M000108.html +0 -19
- data/doc/classes/Git/Base.src/M000109.html +0 -18
- data/doc/classes/Git/Base.src/M000110.html +0 -22
- data/doc/classes/Git/Base.src/M000111.html +0 -18
- data/doc/classes/Git/Base.src/M000112.html +0 -18
- data/doc/classes/Git/Base.src/M000113.html +0 -19
- data/doc/classes/Git/Base.src/M000114.html +0 -18
- data/doc/classes/Git/Base.src/M000115.html +0 -18
- data/doc/classes/Git/Base.src/M000116.html +0 -18
- data/doc/classes/Git/Branch.html +0 -477
- data/doc/classes/Git/Branch.src/M000066.html +0 -28
- data/doc/classes/Git/Branch.src/M000067.html +0 -19
- data/doc/classes/Git/Branch.src/M000068.html +0 -19
- data/doc/classes/Git/Branch.src/M000069.html +0 -25
- data/doc/classes/Git/Branch.src/M000070.html +0 -18
- data/doc/classes/Git/Branch.src/M000071.html +0 -18
- data/doc/classes/Git/Branch.src/M000072.html +0 -18
- data/doc/classes/Git/Branch.src/M000073.html +0 -27
- data/doc/classes/Git/Branch.src/M000074.html +0 -18
- data/doc/classes/Git/Branch.src/M000075.html +0 -18
- data/doc/classes/Git/Branches.html +0 -294
- data/doc/classes/Git/Branches.src/M000060.html +0 -24
- data/doc/classes/Git/Branches.src/M000061.html +0 -18
- data/doc/classes/Git/Branches.src/M000062.html +0 -18
- data/doc/classes/Git/Branches.src/M000063.html +0 -18
- data/doc/classes/Git/Branches.src/M000064.html +0 -20
- data/doc/classes/Git/Branches.src/M000065.html +0 -18
- data/doc/classes/Git/Diff.html +0 -419
- data/doc/classes/Git/Diff.src/M000134.html +0 -20
- data/doc/classes/Git/Diff.src/M000135.html +0 -19
- data/doc/classes/Git/Diff.src/M000136.html +0 -19
- data/doc/classes/Git/Diff.src/M000137.html +0 -19
- data/doc/classes/Git/Diff.src/M000138.html +0 -19
- data/doc/classes/Git/Diff.src/M000139.html +0 -19
- data/doc/classes/Git/Diff.src/M000140.html +0 -19
- data/doc/classes/Git/Diff.src/M000141.html +0 -19
- data/doc/classes/Git/Diff.src/M000143.html +0 -19
- data/doc/classes/Git/Diff.src/M000144.html +0 -21
- data/doc/classes/Git/Diff/DiffFile.html +0 -220
- data/doc/classes/Git/Diff/DiffFile.src/M000145.html +0 -24
- data/doc/classes/Git/Diff/DiffFile.src/M000146.html +0 -22
- data/doc/classes/Git/GitExecuteError.html +0 -111
- data/doc/classes/Git/GitTagNameDoesNotExist.html +0 -111
- data/doc/classes/Git/Index.html +0 -113
- data/doc/classes/Git/Lib.html +0 -1560
- data/doc/classes/Git/Lib.src/M000024.html +0 -26
- data/doc/classes/Git/Lib.src/M000025.html +0 -18
- data/doc/classes/Git/Lib.src/M000026.html +0 -29
- data/doc/classes/Git/Lib.src/M000027.html +0 -25
- data/doc/classes/Git/Lib.src/M000028.html +0 -18
- data/doc/classes/Git/Lib.src/M000029.html +0 -18
- data/doc/classes/Git/Lib.src/M000030.html +0 -18
- data/doc/classes/Git/Lib.src/M000031.html +0 -18
- data/doc/classes/Git/Lib.src/M000032.html +0 -24
- data/doc/classes/Git/Lib.src/M000033.html +0 -18
- data/doc/classes/Git/Lib.src/M000034.html +0 -33
- data/doc/classes/Git/Lib.src/M000035.html +0 -23
- data/doc/classes/Git/Lib.src/M000036.html +0 -34
- data/doc/classes/Git/Lib.src/M000037.html +0 -25
- data/doc/classes/Git/Lib.src/M000038.html +0 -25
- data/doc/classes/Git/Lib.src/M000039.html +0 -24
- data/doc/classes/Git/Lib.src/M000040.html +0 -23
- data/doc/classes/Git/Lib.src/M000041.html +0 -18
- data/doc/classes/Git/Lib.src/M000042.html +0 -23
- data/doc/classes/Git/Lib.src/M000043.html +0 -18
- data/doc/classes/Git/Lib.src/M000044.html +0 -19
- data/doc/classes/Git/Lib.src/M000045.html +0 -24
- data/doc/classes/Git/Lib.src/M000046.html +0 -20
- data/doc/classes/Git/Lib.src/M000047.html +0 -21
- data/doc/classes/Git/Lib.src/M000048.html +0 -18
- data/doc/classes/Git/Lib.src/M000049.html +0 -18
- data/doc/classes/Git/Lib.src/M000050.html +0 -22
- data/doc/classes/Git/Lib.src/M000051.html +0 -21
- data/doc/classes/Git/Lib.src/M000052.html +0 -23
- data/doc/classes/Git/Lib.src/M000053.html +0 -18
- data/doc/classes/Git/Lib.src/M000054.html +0 -18
- data/doc/classes/Git/Lib.src/M000055.html +0 -18
- data/doc/classes/Git/Lib.src/M000056.html +0 -18
- data/doc/classes/Git/Lib.src/M000057.html +0 -18
- data/doc/classes/Git/Lib.src/M000058.html +0 -18
- data/doc/classes/Git/Lib.src/M000059.html +0 -18
- data/doc/classes/Git/Log.html +0 -373
- data/doc/classes/Git/Log.src/M000015.html +0 -20
- data/doc/classes/Git/Log.src/M000016.html +0 -20
- data/doc/classes/Git/Log.src/M000017.html +0 -20
- data/doc/classes/Git/Log.src/M000018.html +0 -20
- data/doc/classes/Git/Log.src/M000019.html +0 -20
- data/doc/classes/Git/Log.src/M000020.html +0 -18
- data/doc/classes/Git/Log.src/M000021.html +0 -19
- data/doc/classes/Git/Log.src/M000022.html +0 -21
- data/doc/classes/Git/Log.src/M000023.html +0 -19
- data/doc/classes/Git/Object.html +0 -186
- data/doc/classes/Git/Object.src/M000120.html +0 -35
- data/doc/classes/Git/Object/AbstractObject.html +0 -522
- data/doc/classes/Git/Object/AbstractObject.src/M000122.html +0 -21
- data/doc/classes/Git/Object/AbstractObject.src/M000123.html +0 -18
- data/doc/classes/Git/Object/AbstractObject.src/M000124.html +0 -18
- data/doc/classes/Git/Object/AbstractObject.src/M000125.html +0 -18
- data/doc/classes/Git/Object/AbstractObject.src/M000126.html +0 -18
- data/doc/classes/Git/Object/AbstractObject.src/M000127.html +0 -20
- data/doc/classes/Git/Object/AbstractObject.src/M000128.html +0 -18
- data/doc/classes/Git/Object/AbstractObject.src/M000129.html +0 -18
- data/doc/classes/Git/Object/Blob.html +0 -149
- data/doc/classes/Git/Object/Blob.src/M000132.html +0 -18
- data/doc/classes/Git/Object/Commit.html +0 -453
- data/doc/classes/Git/Object/Commit.src/M000121.html +0 -18
- data/doc/classes/Git/Object/Tag.html +0 -162
- data/doc/classes/Git/Object/Tag.src/M000130.html +0 -19
- data/doc/classes/Git/Object/Tag.src/M000131.html +0 -18
- data/doc/classes/Git/Object/Tree.html +0 -270
- data/doc/classes/Git/Object/Tree.src/M000133.html +0 -18
- data/doc/classes/Git/Path.html +0 -239
- data/doc/classes/Git/Path.src/M000117.html +0 -22
- data/doc/classes/Git/Path.src/M000118.html +0 -18
- data/doc/classes/Git/Path.src/M000119.html +0 -18
- data/doc/classes/Git/Remote.html +0 -324
- data/doc/classes/Git/Remote.src/M000147.html +0 -22
- data/doc/classes/Git/Remote.src/M000148.html +0 -18
- data/doc/classes/Git/Remote.src/M000149.html +0 -18
- data/doc/classes/Git/Remote.src/M000150.html +0 -18
- data/doc/classes/Git/Remote.src/M000151.html +0 -18
- data/doc/classes/Git/Remote.src/M000152.html +0 -18
- data/doc/classes/Git/Remote.src/M000153.html +0 -18
- data/doc/classes/Git/Repository.html +0 -113
- data/doc/classes/Git/Status.html +0 -348
- data/doc/classes/Git/Status.src/M000005.html +0 -19
- data/doc/classes/Git/Status.src/M000006.html +0 -18
- data/doc/classes/Git/Status.src/M000007.html +0 -18
- data/doc/classes/Git/Status.src/M000008.html +0 -18
- data/doc/classes/Git/Status.src/M000009.html +0 -18
- data/doc/classes/Git/Status.src/M000010.html +0 -29
- data/doc/classes/Git/Status.src/M000011.html +0 -18
- data/doc/classes/Git/Status.src/M000012.html +0 -20
- data/doc/classes/Git/Status/StatusFile.html +0 -232
- data/doc/classes/Git/Status/StatusFile.src/M000013.html +0 -26
- data/doc/classes/Git/Status/StatusFile.src/M000014.html +0 -22
- data/doc/classes/Git/WorkingDirectory.html +0 -113
- data/doc/created.rid +0 -1
- data/doc/files/EXAMPLES.html +0 -247
- data/doc/files/README.html +0 -380
- data/doc/files/lib/git/author_rb.html +0 -101
- data/doc/files/lib/git/base_rb.html +0 -101
- data/doc/files/lib/git/branch_rb.html +0 -101
- data/doc/files/lib/git/branches_rb.html +0 -101
- data/doc/files/lib/git/diff_rb.html +0 -101
- data/doc/files/lib/git/index_rb.html +0 -101
- data/doc/files/lib/git/lib_rb.html +0 -108
- data/doc/files/lib/git/log_rb.html +0 -101
- data/doc/files/lib/git/object_rb.html +0 -101
- data/doc/files/lib/git/path_rb.html +0 -101
- data/doc/files/lib/git/remote_rb.html +0 -101
- data/doc/files/lib/git/repository_rb.html +0 -101
- data/doc/files/lib/git/status_rb.html +0 -101
- data/doc/files/lib/git/working_directory_rb.html +0 -101
- data/doc/files/lib/git_rb.html +0 -128
- data/doc/fr_class_index.html +0 -50
- data/doc/fr_file_index.html +0 -42
- data/doc/fr_method_index.html +0 -234
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/lib/git/lib.rb.orig +0 -620
- data/tests/all_tests.rb +0 -4
- data/tests/files/index +0 -0
- data/tests/files/working.git/HEAD +0 -1
- data/tests/files/working.git/config +0 -4
- data/tests/files/working.git/description +0 -1
- data/tests/files/working.git/hooks/applypatch-msg +0 -15
- data/tests/files/working.git/hooks/commit-msg +0 -21
- data/tests/files/working.git/hooks/post-commit +0 -8
- data/tests/files/working.git/hooks/post-receive +0 -16
- data/tests/files/working.git/hooks/post-update +0 -8
- data/tests/files/working.git/hooks/pre-applypatch +0 -14
- data/tests/files/working.git/hooks/pre-commit +0 -70
- data/tests/files/working.git/hooks/pre-rebase +0 -150
- data/tests/files/working.git/hooks/update +0 -78
- data/tests/files/working.git/info/exclude +0 -6
- data/tests/files/working.git/info/refs +0 -10
- data/tests/files/working.git/objects/00/62cdf4c1e63069eececf54325535e91fd57c42 +0 -0
- data/tests/files/working.git/objects/00/ea60e1331b184386392037a7267dfb4a7c7d86 +0 -0
- data/tests/files/working.git/objects/01/0b7b79019cb510d8c5849704fd10541655916d +0 -0
- data/tests/files/working.git/objects/01/dd46ebe07fc30c10c85c2e926c70f2d7058a6b +0 -0
- data/tests/files/working.git/objects/02/b2a02844d00574c234d17bec6294e832f3c4c1 +0 -0
- data/tests/files/working.git/objects/06/f4e8a840d23fc0ab94895a5d16827a19f75fb7 +0 -0
- data/tests/files/working.git/objects/0b/2fe00801b62b7760c23d554796b05abc16af92 +0 -0
- data/tests/files/working.git/objects/0b/5262f6ee3552a99b7081a317e8289d6a4d8e72 +0 -0
- data/tests/files/working.git/objects/0b/c0d846cf80b079e763e35c3af273171bf01fca +0 -0
- data/tests/files/working.git/objects/0d/2c47f07277b3ea30b0884f8e3acd68440507c8 +0 -0
- data/tests/files/working.git/objects/0d/519ca9c2eddc44431efe135d0fc8df00e0b975 +0 -0
- data/tests/files/working.git/objects/0f/845a0a981bc2f61354fcdd2b6eafe2b2c55c2d +0 -3
- data/tests/files/working.git/objects/0f/f4a0357c3d7221a2ef1e4c6b7d5c46d97fe250 +0 -0
- data/tests/files/working.git/objects/12/eb889f49f1464b32a51424d7724fb16f6c3a31 +0 -0
- data/tests/files/working.git/objects/15/34a65657edf4e5caaa5ce35652dca5e4c7d316 +0 -0
- data/tests/files/working.git/objects/15/378a1f3eafe4c5ab4f890883356df917ee5539 +0 -2
- data/tests/files/working.git/objects/16/9e6db43d4c09cd610179a7b9826483b4d94123 +0 -0
- data/tests/files/working.git/objects/16/d1f96acfd92d09c4f1f56d3441ac55dd30500e +0 -0
- data/tests/files/working.git/objects/16/ee5335538f11b4ffcc17b051f8d5db7570a055 +0 -0
- data/tests/files/working.git/objects/17/9ef0e0209e90af00f544ff414e0674dfb5f5c7 +0 -0
- data/tests/files/working.git/objects/19/9d2f8e60fddd1bb2a1b0bddedde35e5aa8b03f +0 -0
- data/tests/files/working.git/objects/1c/c8667014381e2788a94777532a788307f38d26 +0 -1
- data/tests/files/working.git/objects/1c/fcfba04eb4e461e9f930d22f528023ab1ddefc +0 -0
- data/tests/files/working.git/objects/1d/7be4117ded4534789d85c42ab579644cd3fa12 +0 -0
- data/tests/files/working.git/objects/1d/9e4767a95047ca5e395714985afaedb186f4cd +0 -1
- data/tests/files/working.git/objects/1f/09f2edb9c0d9275d15960771b363ca6940fbe3 +0 -0
- data/tests/files/working.git/objects/1f/691b879df15cf6742502ffc59833b4a40e7aef +0 -0
- data/tests/files/working.git/objects/23/751ef6c1fed1304ae1d07020aa73da6f2b93b0 +0 -1
- data/tests/files/working.git/objects/24/5582a71306d7360e40c07cd7d849a1aa14a31e +0 -0
- data/tests/files/working.git/objects/26/3e3c527004e7b742ed1f747c1bfb7e11825d7a +0 -0
- data/tests/files/working.git/objects/27/c0c003dda3e59ba236f53f6661faaf74432b5c +0 -0
- data/tests/files/working.git/objects/29/1b6be488d6abc586d3ee03ca61238766625a75 +0 -0
- data/tests/files/working.git/objects/2a/f6f7d51b7afdd404a871581ebb3b6ac07fb8cc +0 -0
- data/tests/files/working.git/objects/2c/ef51480d44dcc262d16be2812c692d940d5f29 +0 -0
- data/tests/files/working.git/objects/2e/20132e8fd40cb3e82248919a10900d31f1816a +0 -0
- data/tests/files/working.git/objects/2e/939fd37bbd2da971faa27c3e3de7d5aad40507 +0 -0
- data/tests/files/working.git/objects/2f/53e667d1d88e75b3fa300f9ab6e2d8ffd32a15 +0 -0
- data/tests/files/working.git/objects/32/4968b9dc40253f2c52a8e3856398c761dea856 +0 -0
- data/tests/files/working.git/objects/33/8ecb0183d507498aedb669b796b4f9e8880f00 +0 -0
- data/tests/files/working.git/objects/33/edabb4334cbe849a477a0d2893cdb768fa3091 +0 -0
- data/tests/files/working.git/objects/34/a566d193dc4702f03149969a2aad1443231560 +0 -1
- data/tests/files/working.git/objects/36/fe213c328fd280f33abe00069c4b92eb5a88d1 +0 -0
- data/tests/files/working.git/objects/39/66e9fa0e0b9fe9d3ef2fdaa6933f3d0bb82bc3 +0 -0
- data/tests/files/working.git/objects/3a/9f195756f5bd26b67c5e1fffd92d68d61be14e +0 -2
- data/tests/files/working.git/objects/3a/ac4b445017a8fc07502670ec2dbf744213dd48 +0 -0
- data/tests/files/working.git/objects/3b/6eeed9ce43ea893cf48d263da93448edae9f1c +0 -0
- data/tests/files/working.git/objects/3c/644f22b9b8edb06e7e298ecac8e71b133061f1 +0 -0
- data/tests/files/working.git/objects/3c/c71b13d906e445da52785ddeff40dad1163d49 +0 -2
- data/tests/files/working.git/objects/3c/f35bd14cf5f2dd08bbeef8698d700f3a038e5c +0 -0
- data/tests/files/working.git/objects/3d/331db92a8ead0565679efb76f328ae69ed1b77 +0 -0
- data/tests/files/working.git/objects/44/88516c3c936db58ea485ec2213dab9d13e6628 +0 -0
- data/tests/files/working.git/objects/44/987dd95c338fb573726541f270f1a7b55c9d51 +0 -0
- data/tests/files/working.git/objects/45/20c29b885e9db9b0df3c7bab7870157e1d00c3 +0 -0
- data/tests/files/working.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 +0 -0
- data/tests/files/working.git/objects/46/00557506be20eb1501a4f15a52e684d4b9ee61 +0 -0
- data/tests/files/working.git/objects/46/a60232117527e7b57ac0dd5ea4af2cd3fdb696 +0 -0
- data/tests/files/working.git/objects/47/0f6a87fa51dd25f6db0f4725ae37791d449356 +0 -0
- data/tests/files/working.git/objects/47/2650d42fa9454e2e61e3da9f5c158b8af6d298 +0 -0
- data/tests/files/working.git/objects/47/8e5ee111572790b248eaa99140c5a8f728abc7 +0 -0
- data/tests/files/working.git/objects/48/bbf0db7e813affab7d8dd2842b8455ff9876be +0 -0
- data/tests/files/working.git/objects/49/b352299735fda3a333c69c6273178b0c3dfa08 +0 -0
- data/tests/files/working.git/objects/4a/1e3e4500962c3631a479726bf2e40469594cba +0 -0
- data/tests/files/working.git/objects/4a/2bee50944e9285e8f82216c9b0b8a7d3cdd315 +0 -0
- data/tests/files/working.git/objects/4a/4e676afe275afecf23130390fe96d0e6d00057 +0 -0
- data/tests/files/working.git/objects/4a/de99433ac3e4bcc874cd7de488de29399e9096 +0 -1
- data/tests/files/working.git/objects/4b/7c90536eaa830d8c1f6ff49a7885b581d6acef +0 -1
- data/tests/files/working.git/objects/4c/411dc8e6ea6fcba0ed56e84aa7707f881d24c7 +0 -0
- data/tests/files/working.git/objects/4c/ce9432b2f80461324a61611f6143f8544cd80f +0 -1
- data/tests/files/working.git/objects/4c/e44a75510cbfe200b131fdbcc56a86f1b2dc08 +0 -0
- data/tests/files/working.git/objects/4d/35ba97a858072c240d327e3ce30c28b333a1b0 +0 -0
- data/tests/files/working.git/objects/4d/ff9ef38ef09cbf0e36031bbee22b7cf0c7a8fc +0 -1
- data/tests/files/working.git/objects/4e/aafb1d843aec4f8f1612d03de46a08c2143ea9 +0 -0
- data/tests/files/working.git/objects/4e/ebc1b62c53241b7fbf7fb33b5230362595bfdd +0 -0
- data/tests/files/working.git/objects/4f/4065121cb78fe6116ae7e3075f5c5a446bd08b +0 -0
- data/tests/files/working.git/objects/50/3d77289b054742f507d8a8ce7cc51d3841d5b9 +0 -0
- data/tests/files/working.git/objects/52/4038b20b297f40d78e7d83e04e38049457312b +0 -0
- data/tests/files/working.git/objects/53/a72df554e585e239e41cb1fc498d5aee9bb164 +0 -0
- data/tests/files/working.git/objects/54/0200385c3b0b299c7a87ecf59ca94c32fbbe99 +0 -0
- data/tests/files/working.git/objects/54/5c81a2e8d1112d5f7356f840a22e8f6abcef8f +0 -2
- data/tests/files/working.git/objects/54/5ffc79786f268524c35e1e05b1770c7c74faf1 +0 -3
- data/tests/files/working.git/objects/54/6bec6f8872efa41d5d97a369f669165ecda0de +0 -0
- data/tests/files/working.git/objects/54/7a4bae347658f0d9eed0d35d31b4561aea7cf8 +0 -2
- data/tests/files/working.git/objects/56/195ef83e9e20ca75dddef0630633fc8060ed11 +0 -0
- data/tests/files/working.git/objects/57/7ddd894033c46a5fcf2c6f3c4e71cc72f86909 +0 -0
- data/tests/files/working.git/objects/58/501cbd0fc5ce832f6b34d37243a520dc19a6cc +0 -1
- data/tests/files/working.git/objects/58/73a650a91eb238005444d2c637b451f687951b +0 -0
- data/tests/files/working.git/objects/5a/28efd2fcf55b7b58eb7cc66b5db836155bc2bb +0 -0
- data/tests/files/working.git/objects/5b/0be7da7cc9ecdb6c2de5f818c30a42fbd2c9fa +0 -1
- data/tests/files/working.git/objects/5c/16fb8b958b51f6008f9722b279b1fde0defb76 +0 -3
- data/tests/files/working.git/objects/5d/4606820736043f9eed2a6336661d6892c820a5 +0 -0
- data/tests/files/working.git/objects/5e/392652a881999392c2757cf9b783c5d47b67f7 +0 -0
- data/tests/files/working.git/objects/5e/53019b3238362144c2766f02a2c00d91fcc023 +0 -2
- data/tests/files/working.git/objects/62/70c7f48ca41e6fb41b745ddc1bffe521d83194 +0 -2
- data/tests/files/working.git/objects/62/7e1097cda3b2e3ad6ba4d3772c0985e1ff349c +0 -0
- data/tests/files/working.git/objects/62/bb94c53efae4d53fd0649d129baef4aca87af7 +0 -3
- data/tests/files/working.git/objects/62/c9331ffe97bb6388fb7968662b4e97d121e2da +0 -0
- data/tests/files/working.git/objects/63/1446ec50808846e31fff786c065e69da2c673b +0 -0
- data/tests/files/working.git/objects/64/d0c52ac4c061cf1705e3005dfd86fb70374a14 +0 -0
- data/tests/files/working.git/objects/66/80a909b0e02b297bedbe143ef789d297235358 +0 -0
- data/tests/files/working.git/objects/6b/790ddc5eab30f18cabdd0513e8f8dac0d2d3ed +0 -0
- data/tests/files/working.git/objects/6c/2d312ebd67eed4c7e97e3923b3667764e7360e +0 -0
- data/tests/files/working.git/objects/6d/e8fb35c2e4a69addd030f2dbb4f73fd4742b5b +0 -0
- data/tests/files/working.git/objects/6e/d281c757a969ffe22f3dcfa5830c532479c726 +0 -0
- data/tests/files/working.git/objects/70/714b02913c1a249a5ab05021742f0bc7065df7 +0 -0
- data/tests/files/working.git/objects/71/894b736711ea0a5def4f536009364d07ee4db3 +0 -2
- data/tests/files/working.git/objects/71/c9a23879ff0ac8c49b92d107f3f89c6d1b2d92 +0 -1
- data/tests/files/working.git/objects/73/b171450704ea4350f9f884426389fe04c6cd51 +0 -0
- data/tests/files/working.git/objects/74/32b657191a10587335e74ae6f0966a7eed2976 +0 -0
- data/tests/files/working.git/objects/79/e5b9e6ee5a1e6c52676a6332fe9163adaa92cb +0 -0
- data/tests/files/working.git/objects/7c/076f209839d7f910e8c84e41cc94898287ef45 +0 -0
- data/tests/files/working.git/objects/7c/60c6ab64c74d52f973d18cd1933318a8d9ae2e +0 -0
- data/tests/files/working.git/objects/7c/ac4f8d519d524ed025732ee220f6451665a770 +0 -0
- data/tests/files/working.git/objects/7f/5625f6b3c7213287a12c89017361248ed88936 +0 -0
- data/tests/files/working.git/objects/7f/86d16e0254f64f784198c6a55ef9bf7adbe7ce +0 -0
- data/tests/files/working.git/objects/7f/bfee9f8882ada1ec45c4925baf5649d96c4a16 +0 -0
- data/tests/files/working.git/objects/81/25fbe8605d2884e732a185c9a24abcc0d12a1f +0 -0
- data/tests/files/working.git/objects/81/d4d5e9b6db474d0f432aa31d44bf690d841e94 +0 -0
- data/tests/files/working.git/objects/81/f545324202466d44115656ea463a5bb114345f +0 -0
- data/tests/files/working.git/objects/82/d331cf4d3d4ee537c4f866cab2633b46a8d090 +0 -0
- data/tests/files/working.git/objects/83/c6a1f0d7d8df18a9d9bfe917707aec37868418 +0 -0
- data/tests/files/working.git/objects/85/8f46dd7496faf7af72102ca15cccff832b5377 +0 -0
- data/tests/files/working.git/objects/87/c56502c73149f006631129f85dff697e000356 +0 -0
- data/tests/files/working.git/objects/88/cf23d06f519bec7b824acd52b87a729555f2e7 +0 -0
- data/tests/files/working.git/objects/8a/3fb747983bf2a7f4ef136af4bfcf7993a19307 +0 -0
- data/tests/files/working.git/objects/8b/00d915a0ee5aeb32e0b166e1054c2901338c9d +0 -0
- data/tests/files/working.git/objects/8c/e3ee48a7e7ec697a99ee33700ec624548ad9e8 +0 -0
- data/tests/files/working.git/objects/8d/ae07ab9d98b5fe04d4d7ed804cc36441b68dab +0 -0
- data/tests/files/working.git/objects/8d/c79ae7616abf1e2d4d5d97d566f2b2f6cee043 +0 -0
- data/tests/files/working.git/objects/92/4dec9203af851c3b3e564697ab3004b35b3c2f +0 -0
- data/tests/files/working.git/objects/93/06c056ba3ef9dca6f6365af38148c71196533a +0 -0
- data/tests/files/working.git/objects/93/5badc874edd62a8629aaf103418092c73f0a56 +0 -1
- data/tests/files/working.git/objects/94/c827875e2cadb8bc8d4cdd900f19aa9e8634c7 +0 -0
- data/tests/files/working.git/objects/95/ef665df6ebd69842c5e74a24cb8a12225dee3e +0 -0
- data/tests/files/working.git/objects/98/fb6a686563963b8f7e552d747158adbc1c2bd6 +0 -0
- data/tests/files/working.git/objects/99/3dd9b1cdeab53e305886c91dbcbc8929eff22e +0 -1
- data/tests/files/working.git/objects/9a/e1fbd7636c99d34fdd395cf9bb21ad51417ce7 +0 -1
- data/tests/files/working.git/objects/9b/5149aa4ace4ef69461803b0ccbb21139e12626 +0 -0
- data/tests/files/working.git/objects/9d/3ad2f09cb7a1d4f4c91182c96f2be537fbc4ff +0 -0
- data/tests/files/working.git/objects/9d/6f937544dc3b936d6ee1466d6e216ba18d5686 +0 -0
- data/tests/files/working.git/objects/9f/a43bcd45af28e109e6f7b9a6ccd26e8e193a63 +0 -0
- data/tests/files/working.git/objects/a0/b3f35b3c39cfb12c4cc819bffe1cf54efb3642 +0 -2
- data/tests/files/working.git/objects/a1/15413501949f4f09811fd1aaecf136c012c7d7 +0 -0
- data/tests/files/working.git/objects/a1/a3069efcc64330fb6c66004e69b870da3d6186 +0 -0
- data/tests/files/working.git/objects/a3/62d30d5fe1021cabc4c90f073ba2511d5a43a1 +0 -0
- data/tests/files/working.git/objects/a3/c1f067074cdc9aa998cb5f3cad46a6f17aab2d +0 -0
- data/tests/files/working.git/objects/a3/db7143944dcfa006fefe7fb49c48793cb29ade +0 -2
- data/tests/files/working.git/objects/a4/4a5e945176ff31be83ffca3e7c68a8b6a45ea5 +0 -1
- data/tests/files/working.git/objects/a5/1546fabf88ddef5a9fd91b3989dd8ccae2edf3 +0 -0
- data/tests/files/working.git/objects/a6/b25c4b27ee99f93fd611154202af5f9e3c99de +0 -2
- data/tests/files/working.git/objects/a7/88a1cba299638a2c898fcfaae1f69a1549853d +0 -0
- data/tests/files/working.git/objects/a8/98e8a6b143188022863bc1cab0b5f7514624ba +0 -0
- data/tests/files/working.git/objects/a8/b607b221454c4cd7bc7831b2d19712bb4ff888 +0 -0
- data/tests/files/working.git/objects/a9/e2d9b71b616531f04a65ae5b972ba5d1f2cb93 +0 -0
- data/tests/files/working.git/objects/a9/e2f17562ae78a75dc855bb3dc9e87364195dcf +0 -0
- data/tests/files/working.git/objects/ab/16bc1812fd6226780a841300a2432dfd0c6719 +0 -0
- data/tests/files/working.git/objects/ac/8f48bbb7b31c945ba6a4fbe6950d009a5d8373 +0 -0
- data/tests/files/working.git/objects/ae/21cabd23aee99a719fc828977c0df9e8b19363 +0 -0
- data/tests/files/working.git/objects/b0/3003311ad3fa368b475df58390353868e13c91 +0 -2
- data/tests/files/working.git/objects/b0/ee249c5e5cc9464f3bc0034ab05632dcb87a23 +0 -0
- data/tests/files/working.git/objects/b1/288f8beeaa6cf048c3a9f578d4e266fab8820e +0 -0
- data/tests/files/working.git/objects/b1/5336206c9040f4c52660b3f3c76ee02ccece56 +0 -0
- data/tests/files/working.git/objects/b1/b18f5bea24648a1b08e5bba88728c15ec3cb50 +0 -2
- data/tests/files/working.git/objects/b4/5724ee906d2561901208ba924add09ab95ccb3 +0 -0
- data/tests/files/working.git/objects/b5/d8fc3cb740eb643c66eb5f4a97345fdb806259 +0 -0
- data/tests/files/working.git/objects/b6/153b8fe540288d66b974ae05113338ab1a61f0 +0 -0
- data/tests/files/working.git/objects/b6/987bc1201ad19774c43c0ea8078f6f51d76bcb +0 -0
- data/tests/files/working.git/objects/b6/9e6acd87e5f9114ce6580b095ef1057a8fe5bb +0 -0
- data/tests/files/working.git/objects/b9/8f4909807c8c84a1dc1b62b4a339ae1777f369 +0 -3
- data/tests/files/working.git/objects/ba/492c62b6227d7f3507b4dcc6e6d5f13790eabf +0 -0
- data/tests/files/working.git/objects/ba/c335cb9dc058a477d04cde34c07d1f70d16fb9 +0 -0
- data/tests/files/working.git/objects/bb/0850568bb43049031a38b01ddb60e4a487f823 +0 -0
- data/tests/files/working.git/objects/be/b14380ef26540efcad06bedcd0e302b6bce70e +0 -0
- data/tests/files/working.git/objects/c1/3142dd26a1f6f38403a17f6c411cb621b9a1cd +0 -0
- data/tests/files/working.git/objects/c1/8b4e9b0829411705d7fa9a1570a20d88780817 +0 -0
- data/tests/files/working.git/objects/c5/a3fdb33f052b8f17dac83c533b62244226f4ba +0 -0
- data/tests/files/working.git/objects/c6/567e2feccce3893ae0aaac2bf97807338aa8d4 +0 -0
- data/tests/files/working.git/objects/cb/45eef6fa1ad913137d91c6b81d2b42d69094a6 +0 -0
- data/tests/files/working.git/objects/cd/0d59357b36a447ff27a7c176b46e0a319b42df +0 -0
- data/tests/files/working.git/objects/cd/4291452a61ff8b57cf5510addc8ddc5630748e +0 -0
- data/tests/files/working.git/objects/cf/7135368cc3bf4920ceeaeebd083e098cfad355 +0 -4
- data/tests/files/working.git/objects/cf/b9952c3a28831144a0fac7ea5a2d8517f466c4 +0 -0
- data/tests/files/working.git/objects/d0/0491fd7e5bb6fa28c517a0bb32b8b506539d4d +0 -0
- data/tests/files/working.git/objects/d1/4cbc09cc34fb6450b2e96432102be51c8292b8 +0 -0
- data/tests/files/working.git/objects/d3/d171221e87a30e059d638f155f899595d96b71 +0 -0
- data/tests/files/working.git/objects/d5/b9587b65731e25216743b0caca72051a760211 +0 -2
- data/tests/files/working.git/objects/d6/a3aab3e38bc16688b4e636a91e462434210878 +0 -0
- data/tests/files/working.git/objects/d6/f31c35d7e010e50568c0d605227028aa7bac66 +0 -0
- data/tests/files/working.git/objects/d7/875788aeafdd8e317880c00e3372f683cad91e +0 -0
- data/tests/files/working.git/objects/d7/d8a71a719e2a4ca501991a66dab47df804f6ad +0 -0
- data/tests/files/working.git/objects/d7/e844eec32d74a3d37c4ce02d7138658e1035d6 +0 -0
- data/tests/files/working.git/objects/da/597fb7fba247a5b59d917e90342cf4b9695905 +0 -0
- data/tests/files/working.git/objects/da/7b788b1575936a4381050610a37737c70b55a0 +0 -1
- data/tests/files/working.git/objects/de/996da0ef3dcee1a28aef9243aa3e255eb825b5 +0 -0
- data/tests/files/working.git/objects/de/d54b45e4d49816f6d4256e74d45ba2bb351357 +0 -0
- data/tests/files/working.git/objects/e3/6f723934fd1d67c7d21538751f0b1e941141db +0 -0
- data/tests/files/working.git/objects/e3/ebef76525fe9e6e8dc739934a08512dff777c0 +0 -0
- data/tests/files/working.git/objects/e5/0fa6835cb99747346f19fea5f1ba939da4205f +0 -2
- data/tests/files/working.git/objects/e5/650a5c9c4b5a4415195bfb01d4d8dccbc8221b +0 -0
- data/tests/files/working.git/objects/e5/76bdfc9ed4627ac954f9390cf7a6151ad2a73e +0 -0
- data/tests/files/working.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/tests/files/working.git/objects/e7/ea5938f9c009d32235050bca991d0b9533e440 +0 -0
- data/tests/files/working.git/objects/e8/183f05f5db68b3934e93f4bf6bed2bb664e0b5 +0 -0
- data/tests/files/working.git/objects/e8/bd03b163f82fba4560c11839d49361a78dec85 +0 -0
- data/tests/files/working.git/objects/e9/0de8268373e4fd5ab13310b7745d47ec16813c +0 -0
- data/tests/files/working.git/objects/ec/16a327a6a98367d03369b4e998baf3db379313 +0 -0
- data/tests/files/working.git/objects/ec/1e3d44e160e18dbfbaa80b5b0780ccc03e678e +0 -0
- data/tests/files/working.git/objects/ed/551aa66cf0c6f1a078832f80899faff0ae88dc +0 -0
- data/tests/files/working.git/objects/f1/25480ee106989ec4d86554c0d5a1487ad4336a +0 -1
- data/tests/files/working.git/objects/f1/410f8735f6f73d3599eb9b5cdd2fb70373335c +0 -3
- data/tests/files/working.git/objects/f2/02cb755135d4263589602783b04fb32a079d88 +0 -0
- data/tests/files/working.git/objects/f2/ff401fb3fc81f8abb3ca15247aadc1e22b6288 +0 -0
- data/tests/files/working.git/objects/f5/501de98279c6454f510188873476f3ead0cee6 +0 -4
- data/tests/files/working.git/objects/f7/5f313ca30e534aa9c42463e85108e682d3a14a +0 -0
- data/tests/files/working.git/objects/f8/e9c6748331411c0d3511f90bd4e0a1a30acff0 +0 -0
- data/tests/files/working.git/objects/f9/bce8995109cfab475d043a7dd9156d5e574ed3 +0 -0
- data/tests/files/working.git/objects/fa/6312f71abb153ada6a0399ad710d21bb61e4d8 +0 -0
- data/tests/files/working.git/objects/fb/8e78840d79085abf50edebf5b9d6b73ee0fb4c +0 -0
- data/tests/files/working.git/objects/fc/b49fa99454f804799a12095292edbca48779ab +0 -0
- data/tests/files/working.git/objects/fe/b2ccf88397c2d93f381176067be2727eba330b +0 -0
- data/tests/files/working.git/objects/info/packs +0 -2
- data/tests/files/working.git/objects/pack/pack-6e99d3a243c58205968336728d5637ce2a3b2aff.idx +0 -0
- data/tests/files/working.git/objects/pack/pack-6e99d3a243c58205968336728d5637ce2a3b2aff.pack +0 -0
- data/tests/files/working.git/refs/heads/git_grep +0 -1
- data/tests/files/working.git/refs/heads/master +0 -1
- data/tests/files/working.git/refs/heads/test +0 -1
- data/tests/files/working.git/refs/heads/test_branches +0 -1
- data/tests/files/working.git/refs/heads/test_object +0 -1
- data/tests/files/working.git/refs/tags/gitsearch1 +0 -1
- data/tests/files/working.git/refs/tags/v2.5 +0 -1
- data/tests/files/working.git/refs/tags/v2.6 +0 -1
- data/tests/files/working.git/refs/tags/v2.7 +0 -1
- data/tests/files/working.git/refs/tags/v2.8 +0 -1
- data/tests/files/working/dot_git/FETCH_HEAD +0 -1
- data/tests/files/working/dot_git/HEAD +0 -1
- data/tests/files/working/dot_git/config +0 -13
- data/tests/files/working/dot_git/description +0 -1
- data/tests/files/working/dot_git/hooks/applypatch-msg +0 -15
- data/tests/files/working/dot_git/hooks/commit-msg +0 -21
- data/tests/files/working/dot_git/hooks/post-commit +0 -8
- data/tests/files/working/dot_git/hooks/post-receive +0 -16
- data/tests/files/working/dot_git/hooks/post-update +0 -8
- data/tests/files/working/dot_git/hooks/pre-applypatch +0 -14
- data/tests/files/working/dot_git/hooks/pre-commit +0 -70
- data/tests/files/working/dot_git/hooks/pre-rebase +0 -150
- data/tests/files/working/dot_git/hooks/update +0 -78
- data/tests/files/working/dot_git/index +0 -0
- data/tests/files/working/dot_git/info/exclude +0 -6
- data/tests/files/working/dot_git/logs/HEAD +0 -75
- data/tests/files/working/dot_git/logs/refs/heads/git_grep +0 -5
- data/tests/files/working/dot_git/logs/refs/heads/master +0 -64
- data/tests/files/working/dot_git/logs/refs/heads/test +0 -3
- data/tests/files/working/dot_git/logs/refs/heads/test_branches +0 -1
- data/tests/files/working/dot_git/logs/refs/heads/test_object +0 -2
- data/tests/files/working/dot_git/logs/refs/remotes/working/master +0 -1
- data/tests/files/working/dot_git/objects/00/62cdf4c1e63069eececf54325535e91fd57c42 +0 -0
- data/tests/files/working/dot_git/objects/00/ea60e1331b184386392037a7267dfb4a7c7d86 +0 -0
- data/tests/files/working/dot_git/objects/01/0b7b79019cb510d8c5849704fd10541655916d +0 -0
- data/tests/files/working/dot_git/objects/01/dd46ebe07fc30c10c85c2e926c70f2d7058a6b +0 -0
- data/tests/files/working/dot_git/objects/02/b2a02844d00574c234d17bec6294e832f3c4c1 +0 -0
- data/tests/files/working/dot_git/objects/06/f4e8a840d23fc0ab94895a5d16827a19f75fb7 +0 -0
- data/tests/files/working/dot_git/objects/0b/2fe00801b62b7760c23d554796b05abc16af92 +0 -0
- data/tests/files/working/dot_git/objects/0b/5262f6ee3552a99b7081a317e8289d6a4d8e72 +0 -0
- data/tests/files/working/dot_git/objects/0b/c0d846cf80b079e763e35c3af273171bf01fca +0 -0
- data/tests/files/working/dot_git/objects/0d/2c47f07277b3ea30b0884f8e3acd68440507c8 +0 -0
- data/tests/files/working/dot_git/objects/0d/519ca9c2eddc44431efe135d0fc8df00e0b975 +0 -0
- data/tests/files/working/dot_git/objects/0f/845a0a981bc2f61354fcdd2b6eafe2b2c55c2d +0 -3
- data/tests/files/working/dot_git/objects/0f/f4a0357c3d7221a2ef1e4c6b7d5c46d97fe250 +0 -0
- data/tests/files/working/dot_git/objects/12/eb889f49f1464b32a51424d7724fb16f6c3a31 +0 -0
- data/tests/files/working/dot_git/objects/15/34a65657edf4e5caaa5ce35652dca5e4c7d316 +0 -0
- data/tests/files/working/dot_git/objects/15/378a1f3eafe4c5ab4f890883356df917ee5539 +0 -2
- data/tests/files/working/dot_git/objects/16/9e6db43d4c09cd610179a7b9826483b4d94123 +0 -0
- data/tests/files/working/dot_git/objects/16/d1f96acfd92d09c4f1f56d3441ac55dd30500e +0 -0
- data/tests/files/working/dot_git/objects/16/ee5335538f11b4ffcc17b051f8d5db7570a055 +0 -0
- data/tests/files/working/dot_git/objects/17/9ef0e0209e90af00f544ff414e0674dfb5f5c7 +0 -0
- data/tests/files/working/dot_git/objects/19/9d2f8e60fddd1bb2a1b0bddedde35e5aa8b03f +0 -0
- data/tests/files/working/dot_git/objects/1c/c8667014381e2788a94777532a788307f38d26 +0 -1
- data/tests/files/working/dot_git/objects/1c/fcfba04eb4e461e9f930d22f528023ab1ddefc +0 -0
- data/tests/files/working/dot_git/objects/1d/7be4117ded4534789d85c42ab579644cd3fa12 +0 -0
- data/tests/files/working/dot_git/objects/1d/9e4767a95047ca5e395714985afaedb186f4cd +0 -1
- data/tests/files/working/dot_git/objects/1f/09f2edb9c0d9275d15960771b363ca6940fbe3 +0 -0
- data/tests/files/working/dot_git/objects/1f/691b879df15cf6742502ffc59833b4a40e7aef +0 -0
- data/tests/files/working/dot_git/objects/23/751ef6c1fed1304ae1d07020aa73da6f2b93b0 +0 -1
- data/tests/files/working/dot_git/objects/24/5582a71306d7360e40c07cd7d849a1aa14a31e +0 -0
- data/tests/files/working/dot_git/objects/26/3e3c527004e7b742ed1f747c1bfb7e11825d7a +0 -0
- data/tests/files/working/dot_git/objects/27/c0c003dda3e59ba236f53f6661faaf74432b5c +0 -0
- data/tests/files/working/dot_git/objects/29/1b6be488d6abc586d3ee03ca61238766625a75 +0 -0
- data/tests/files/working/dot_git/objects/2a/f6f7d51b7afdd404a871581ebb3b6ac07fb8cc +0 -0
- data/tests/files/working/dot_git/objects/2c/ef51480d44dcc262d16be2812c692d940d5f29 +0 -0
- data/tests/files/working/dot_git/objects/2e/20132e8fd40cb3e82248919a10900d31f1816a +0 -0
- data/tests/files/working/dot_git/objects/2e/939fd37bbd2da971faa27c3e3de7d5aad40507 +0 -0
- data/tests/files/working/dot_git/objects/2f/53e667d1d88e75b3fa300f9ab6e2d8ffd32a15 +0 -0
- data/tests/files/working/dot_git/objects/32/4968b9dc40253f2c52a8e3856398c761dea856 +0 -0
- data/tests/files/working/dot_git/objects/33/8ecb0183d507498aedb669b796b4f9e8880f00 +0 -0
- data/tests/files/working/dot_git/objects/33/edabb4334cbe849a477a0d2893cdb768fa3091 +0 -0
- data/tests/files/working/dot_git/objects/34/a566d193dc4702f03149969a2aad1443231560 +0 -1
- data/tests/files/working/dot_git/objects/36/fe213c328fd280f33abe00069c4b92eb5a88d1 +0 -0
- data/tests/files/working/dot_git/objects/39/66e9fa0e0b9fe9d3ef2fdaa6933f3d0bb82bc3 +0 -0
- data/tests/files/working/dot_git/objects/3a/9f195756f5bd26b67c5e1fffd92d68d61be14e +0 -2
- data/tests/files/working/dot_git/objects/3a/ac4b445017a8fc07502670ec2dbf744213dd48 +0 -0
- data/tests/files/working/dot_git/objects/3b/6eeed9ce43ea893cf48d263da93448edae9f1c +0 -0
- data/tests/files/working/dot_git/objects/3c/644f22b9b8edb06e7e298ecac8e71b133061f1 +0 -0
- data/tests/files/working/dot_git/objects/3c/c71b13d906e445da52785ddeff40dad1163d49 +0 -2
- data/tests/files/working/dot_git/objects/3c/f35bd14cf5f2dd08bbeef8698d700f3a038e5c +0 -0
- data/tests/files/working/dot_git/objects/3d/331db92a8ead0565679efb76f328ae69ed1b77 +0 -0
- data/tests/files/working/dot_git/objects/44/88516c3c936db58ea485ec2213dab9d13e6628 +0 -0
- data/tests/files/working/dot_git/objects/44/987dd95c338fb573726541f270f1a7b55c9d51 +0 -0
- data/tests/files/working/dot_git/objects/45/20c29b885e9db9b0df3c7bab7870157e1d00c3 +0 -0
- data/tests/files/working/dot_git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 +0 -0
- data/tests/files/working/dot_git/objects/46/00557506be20eb1501a4f15a52e684d4b9ee61 +0 -0
- data/tests/files/working/dot_git/objects/46/a60232117527e7b57ac0dd5ea4af2cd3fdb696 +0 -0
- data/tests/files/working/dot_git/objects/47/0f6a87fa51dd25f6db0f4725ae37791d449356 +0 -0
- data/tests/files/working/dot_git/objects/47/2650d42fa9454e2e61e3da9f5c158b8af6d298 +0 -0
- data/tests/files/working/dot_git/objects/47/8e5ee111572790b248eaa99140c5a8f728abc7 +0 -0
- data/tests/files/working/dot_git/objects/48/bbf0db7e813affab7d8dd2842b8455ff9876be +0 -0
- data/tests/files/working/dot_git/objects/49/b352299735fda3a333c69c6273178b0c3dfa08 +0 -0
- data/tests/files/working/dot_git/objects/4a/1e3e4500962c3631a479726bf2e40469594cba +0 -0
- data/tests/files/working/dot_git/objects/4a/2bee50944e9285e8f82216c9b0b8a7d3cdd315 +0 -0
- data/tests/files/working/dot_git/objects/4a/4e676afe275afecf23130390fe96d0e6d00057 +0 -0
- data/tests/files/working/dot_git/objects/4a/de99433ac3e4bcc874cd7de488de29399e9096 +0 -1
- data/tests/files/working/dot_git/objects/4b/7c90536eaa830d8c1f6ff49a7885b581d6acef +0 -1
- data/tests/files/working/dot_git/objects/4c/411dc8e6ea6fcba0ed56e84aa7707f881d24c7 +0 -0
- data/tests/files/working/dot_git/objects/4c/ce9432b2f80461324a61611f6143f8544cd80f +0 -1
- data/tests/files/working/dot_git/objects/4c/e44a75510cbfe200b131fdbcc56a86f1b2dc08 +0 -0
- data/tests/files/working/dot_git/objects/4d/35ba97a858072c240d327e3ce30c28b333a1b0 +0 -0
- data/tests/files/working/dot_git/objects/4d/ff9ef38ef09cbf0e36031bbee22b7cf0c7a8fc +0 -1
- data/tests/files/working/dot_git/objects/4e/aafb1d843aec4f8f1612d03de46a08c2143ea9 +0 -0
- data/tests/files/working/dot_git/objects/4e/ebc1b62c53241b7fbf7fb33b5230362595bfdd +0 -0
- data/tests/files/working/dot_git/objects/4f/4065121cb78fe6116ae7e3075f5c5a446bd08b +0 -0
- data/tests/files/working/dot_git/objects/50/3d77289b054742f507d8a8ce7cc51d3841d5b9 +0 -0
- data/tests/files/working/dot_git/objects/52/4038b20b297f40d78e7d83e04e38049457312b +0 -0
- data/tests/files/working/dot_git/objects/53/a72df554e585e239e41cb1fc498d5aee9bb164 +0 -0
- data/tests/files/working/dot_git/objects/54/0200385c3b0b299c7a87ecf59ca94c32fbbe99 +0 -0
- data/tests/files/working/dot_git/objects/54/5c81a2e8d1112d5f7356f840a22e8f6abcef8f +0 -2
- data/tests/files/working/dot_git/objects/54/5ffc79786f268524c35e1e05b1770c7c74faf1 +0 -3
- data/tests/files/working/dot_git/objects/54/6bec6f8872efa41d5d97a369f669165ecda0de +0 -0
- data/tests/files/working/dot_git/objects/54/7a4bae347658f0d9eed0d35d31b4561aea7cf8 +0 -2
- data/tests/files/working/dot_git/objects/56/195ef83e9e20ca75dddef0630633fc8060ed11 +0 -0
- data/tests/files/working/dot_git/objects/57/7ddd894033c46a5fcf2c6f3c4e71cc72f86909 +0 -0
- data/tests/files/working/dot_git/objects/58/501cbd0fc5ce832f6b34d37243a520dc19a6cc +0 -1
- data/tests/files/working/dot_git/objects/58/73a650a91eb238005444d2c637b451f687951b +0 -0
- data/tests/files/working/dot_git/objects/5a/28efd2fcf55b7b58eb7cc66b5db836155bc2bb +0 -0
- data/tests/files/working/dot_git/objects/5b/0be7da7cc9ecdb6c2de5f818c30a42fbd2c9fa +0 -1
- data/tests/files/working/dot_git/objects/5c/16fb8b958b51f6008f9722b279b1fde0defb76 +0 -3
- data/tests/files/working/dot_git/objects/5d/4606820736043f9eed2a6336661d6892c820a5 +0 -0
- data/tests/files/working/dot_git/objects/5e/392652a881999392c2757cf9b783c5d47b67f7 +0 -0
- data/tests/files/working/dot_git/objects/5e/53019b3238362144c2766f02a2c00d91fcc023 +0 -2
- data/tests/files/working/dot_git/objects/62/70c7f48ca41e6fb41b745ddc1bffe521d83194 +0 -2
- data/tests/files/working/dot_git/objects/62/7e1097cda3b2e3ad6ba4d3772c0985e1ff349c +0 -0
- data/tests/files/working/dot_git/objects/62/bb94c53efae4d53fd0649d129baef4aca87af7 +0 -3
- data/tests/files/working/dot_git/objects/62/c9331ffe97bb6388fb7968662b4e97d121e2da +0 -0
- data/tests/files/working/dot_git/objects/63/1446ec50808846e31fff786c065e69da2c673b +0 -0
- data/tests/files/working/dot_git/objects/64/d0c52ac4c061cf1705e3005dfd86fb70374a14 +0 -0
- data/tests/files/working/dot_git/objects/66/80a909b0e02b297bedbe143ef789d297235358 +0 -0
- data/tests/files/working/dot_git/objects/6b/790ddc5eab30f18cabdd0513e8f8dac0d2d3ed +0 -0
- data/tests/files/working/dot_git/objects/6c/2d312ebd67eed4c7e97e3923b3667764e7360e +0 -0
- data/tests/files/working/dot_git/objects/6d/e8fb35c2e4a69addd030f2dbb4f73fd4742b5b +0 -0
- data/tests/files/working/dot_git/objects/6e/d281c757a969ffe22f3dcfa5830c532479c726 +0 -0
- data/tests/files/working/dot_git/objects/70/714b02913c1a249a5ab05021742f0bc7065df7 +0 -0
- data/tests/files/working/dot_git/objects/71/894b736711ea0a5def4f536009364d07ee4db3 +0 -2
- data/tests/files/working/dot_git/objects/71/c9a23879ff0ac8c49b92d107f3f89c6d1b2d92 +0 -1
- data/tests/files/working/dot_git/objects/73/b171450704ea4350f9f884426389fe04c6cd51 +0 -0
- data/tests/files/working/dot_git/objects/74/32b657191a10587335e74ae6f0966a7eed2976 +0 -0
- data/tests/files/working/dot_git/objects/79/e5b9e6ee5a1e6c52676a6332fe9163adaa92cb +0 -0
- data/tests/files/working/dot_git/objects/7c/076f209839d7f910e8c84e41cc94898287ef45 +0 -0
- data/tests/files/working/dot_git/objects/7c/60c6ab64c74d52f973d18cd1933318a8d9ae2e +0 -0
- data/tests/files/working/dot_git/objects/7c/ac4f8d519d524ed025732ee220f6451665a770 +0 -0
- data/tests/files/working/dot_git/objects/7f/5625f6b3c7213287a12c89017361248ed88936 +0 -0
- data/tests/files/working/dot_git/objects/7f/86d16e0254f64f784198c6a55ef9bf7adbe7ce +0 -0
- data/tests/files/working/dot_git/objects/7f/bfee9f8882ada1ec45c4925baf5649d96c4a16 +0 -0
- data/tests/files/working/dot_git/objects/81/25fbe8605d2884e732a185c9a24abcc0d12a1f +0 -0
- data/tests/files/working/dot_git/objects/81/d4d5e9b6db474d0f432aa31d44bf690d841e94 +0 -0
- data/tests/files/working/dot_git/objects/81/f545324202466d44115656ea463a5bb114345f +0 -0
- data/tests/files/working/dot_git/objects/82/d331cf4d3d4ee537c4f866cab2633b46a8d090 +0 -0
- data/tests/files/working/dot_git/objects/83/c6a1f0d7d8df18a9d9bfe917707aec37868418 +0 -0
- data/tests/files/working/dot_git/objects/85/8f46dd7496faf7af72102ca15cccff832b5377 +0 -0
- data/tests/files/working/dot_git/objects/87/c56502c73149f006631129f85dff697e000356 +0 -0
- data/tests/files/working/dot_git/objects/88/cf23d06f519bec7b824acd52b87a729555f2e7 +0 -0
- data/tests/files/working/dot_git/objects/8a/3fb747983bf2a7f4ef136af4bfcf7993a19307 +0 -0
- data/tests/files/working/dot_git/objects/8b/00d915a0ee5aeb32e0b166e1054c2901338c9d +0 -0
- data/tests/files/working/dot_git/objects/8c/e3ee48a7e7ec697a99ee33700ec624548ad9e8 +0 -0
- data/tests/files/working/dot_git/objects/8d/ae07ab9d98b5fe04d4d7ed804cc36441b68dab +0 -0
- data/tests/files/working/dot_git/objects/8d/c79ae7616abf1e2d4d5d97d566f2b2f6cee043 +0 -0
- data/tests/files/working/dot_git/objects/92/4dec9203af851c3b3e564697ab3004b35b3c2f +0 -0
- data/tests/files/working/dot_git/objects/93/06c056ba3ef9dca6f6365af38148c71196533a +0 -0
- data/tests/files/working/dot_git/objects/93/5badc874edd62a8629aaf103418092c73f0a56 +0 -1
- data/tests/files/working/dot_git/objects/94/c827875e2cadb8bc8d4cdd900f19aa9e8634c7 +0 -0
- data/tests/files/working/dot_git/objects/95/ef665df6ebd69842c5e74a24cb8a12225dee3e +0 -0
- data/tests/files/working/dot_git/objects/98/fb6a686563963b8f7e552d747158adbc1c2bd6 +0 -0
- data/tests/files/working/dot_git/objects/99/3dd9b1cdeab53e305886c91dbcbc8929eff22e +0 -1
- data/tests/files/working/dot_git/objects/9a/e1fbd7636c99d34fdd395cf9bb21ad51417ce7 +0 -1
- data/tests/files/working/dot_git/objects/9b/5149aa4ace4ef69461803b0ccbb21139e12626 +0 -0
- data/tests/files/working/dot_git/objects/9d/3ad2f09cb7a1d4f4c91182c96f2be537fbc4ff +0 -0
- data/tests/files/working/dot_git/objects/9d/6f937544dc3b936d6ee1466d6e216ba18d5686 +0 -0
- data/tests/files/working/dot_git/objects/9f/a43bcd45af28e109e6f7b9a6ccd26e8e193a63 +0 -0
- data/tests/files/working/dot_git/objects/a0/b3f35b3c39cfb12c4cc819bffe1cf54efb3642 +0 -2
- data/tests/files/working/dot_git/objects/a1/15413501949f4f09811fd1aaecf136c012c7d7 +0 -0
- data/tests/files/working/dot_git/objects/a1/a3069efcc64330fb6c66004e69b870da3d6186 +0 -0
- data/tests/files/working/dot_git/objects/a3/62d30d5fe1021cabc4c90f073ba2511d5a43a1 +0 -0
- data/tests/files/working/dot_git/objects/a3/c1f067074cdc9aa998cb5f3cad46a6f17aab2d +0 -0
- data/tests/files/working/dot_git/objects/a3/db7143944dcfa006fefe7fb49c48793cb29ade +0 -2
- data/tests/files/working/dot_git/objects/a4/4a5e945176ff31be83ffca3e7c68a8b6a45ea5 +0 -1
- data/tests/files/working/dot_git/objects/a5/1546fabf88ddef5a9fd91b3989dd8ccae2edf3 +0 -0
- data/tests/files/working/dot_git/objects/a6/b25c4b27ee99f93fd611154202af5f9e3c99de +0 -2
- data/tests/files/working/dot_git/objects/a7/88a1cba299638a2c898fcfaae1f69a1549853d +0 -0
- data/tests/files/working/dot_git/objects/a8/98e8a6b143188022863bc1cab0b5f7514624ba +0 -0
- data/tests/files/working/dot_git/objects/a8/b607b221454c4cd7bc7831b2d19712bb4ff888 +0 -0
- data/tests/files/working/dot_git/objects/a9/e2d9b71b616531f04a65ae5b972ba5d1f2cb93 +0 -0
- data/tests/files/working/dot_git/objects/a9/e2f17562ae78a75dc855bb3dc9e87364195dcf +0 -0
- data/tests/files/working/dot_git/objects/ab/16bc1812fd6226780a841300a2432dfd0c6719 +0 -0
- data/tests/files/working/dot_git/objects/ac/8f48bbb7b31c945ba6a4fbe6950d009a5d8373 +0 -0
- data/tests/files/working/dot_git/objects/ae/21cabd23aee99a719fc828977c0df9e8b19363 +0 -0
- data/tests/files/working/dot_git/objects/b0/3003311ad3fa368b475df58390353868e13c91 +0 -2
- data/tests/files/working/dot_git/objects/b0/ee249c5e5cc9464f3bc0034ab05632dcb87a23 +0 -0
- data/tests/files/working/dot_git/objects/b1/288f8beeaa6cf048c3a9f578d4e266fab8820e +0 -0
- data/tests/files/working/dot_git/objects/b1/5336206c9040f4c52660b3f3c76ee02ccece56 +0 -0
- data/tests/files/working/dot_git/objects/b1/b18f5bea24648a1b08e5bba88728c15ec3cb50 +0 -2
- data/tests/files/working/dot_git/objects/b4/5724ee906d2561901208ba924add09ab95ccb3 +0 -0
- data/tests/files/working/dot_git/objects/b5/d8fc3cb740eb643c66eb5f4a97345fdb806259 +0 -0
- data/tests/files/working/dot_git/objects/b6/153b8fe540288d66b974ae05113338ab1a61f0 +0 -0
- data/tests/files/working/dot_git/objects/b6/987bc1201ad19774c43c0ea8078f6f51d76bcb +0 -0
- data/tests/files/working/dot_git/objects/b6/9e6acd87e5f9114ce6580b095ef1057a8fe5bb +0 -0
- data/tests/files/working/dot_git/objects/b9/8f4909807c8c84a1dc1b62b4a339ae1777f369 +0 -3
- data/tests/files/working/dot_git/objects/ba/492c62b6227d7f3507b4dcc6e6d5f13790eabf +0 -0
- data/tests/files/working/dot_git/objects/ba/c335cb9dc058a477d04cde34c07d1f70d16fb9 +0 -0
- data/tests/files/working/dot_git/objects/bb/0850568bb43049031a38b01ddb60e4a487f823 +0 -0
- data/tests/files/working/dot_git/objects/be/b14380ef26540efcad06bedcd0e302b6bce70e +0 -0
- data/tests/files/working/dot_git/objects/c1/3142dd26a1f6f38403a17f6c411cb621b9a1cd +0 -0
- data/tests/files/working/dot_git/objects/c1/8b4e9b0829411705d7fa9a1570a20d88780817 +0 -0
- data/tests/files/working/dot_git/objects/c5/a3fdb33f052b8f17dac83c533b62244226f4ba +0 -0
- data/tests/files/working/dot_git/objects/c6/567e2feccce3893ae0aaac2bf97807338aa8d4 +0 -0
- data/tests/files/working/dot_git/objects/cb/45eef6fa1ad913137d91c6b81d2b42d69094a6 +0 -0
- data/tests/files/working/dot_git/objects/cd/0d59357b36a447ff27a7c176b46e0a319b42df +0 -0
- data/tests/files/working/dot_git/objects/cd/4291452a61ff8b57cf5510addc8ddc5630748e +0 -0
- data/tests/files/working/dot_git/objects/cf/7135368cc3bf4920ceeaeebd083e098cfad355 +0 -4
- data/tests/files/working/dot_git/objects/cf/b9952c3a28831144a0fac7ea5a2d8517f466c4 +0 -0
- data/tests/files/working/dot_git/objects/d0/0491fd7e5bb6fa28c517a0bb32b8b506539d4d +0 -0
- data/tests/files/working/dot_git/objects/d1/4cbc09cc34fb6450b2e96432102be51c8292b8 +0 -0
- data/tests/files/working/dot_git/objects/d3/d171221e87a30e059d638f155f899595d96b71 +0 -0
- data/tests/files/working/dot_git/objects/d5/b9587b65731e25216743b0caca72051a760211 +0 -2
- data/tests/files/working/dot_git/objects/d6/a3aab3e38bc16688b4e636a91e462434210878 +0 -0
- data/tests/files/working/dot_git/objects/d6/f31c35d7e010e50568c0d605227028aa7bac66 +0 -0
- data/tests/files/working/dot_git/objects/d7/875788aeafdd8e317880c00e3372f683cad91e +0 -0
- data/tests/files/working/dot_git/objects/d7/d8a71a719e2a4ca501991a66dab47df804f6ad +0 -0
- data/tests/files/working/dot_git/objects/d7/e844eec32d74a3d37c4ce02d7138658e1035d6 +0 -0
- data/tests/files/working/dot_git/objects/da/597fb7fba247a5b59d917e90342cf4b9695905 +0 -0
- data/tests/files/working/dot_git/objects/da/7b788b1575936a4381050610a37737c70b55a0 +0 -1
- data/tests/files/working/dot_git/objects/de/996da0ef3dcee1a28aef9243aa3e255eb825b5 +0 -0
- data/tests/files/working/dot_git/objects/de/d54b45e4d49816f6d4256e74d45ba2bb351357 +0 -0
- data/tests/files/working/dot_git/objects/e3/6f723934fd1d67c7d21538751f0b1e941141db +0 -0
- data/tests/files/working/dot_git/objects/e3/ebef76525fe9e6e8dc739934a08512dff777c0 +0 -0
- data/tests/files/working/dot_git/objects/e5/0fa6835cb99747346f19fea5f1ba939da4205f +0 -2
- data/tests/files/working/dot_git/objects/e5/650a5c9c4b5a4415195bfb01d4d8dccbc8221b +0 -0
- data/tests/files/working/dot_git/objects/e5/76bdfc9ed4627ac954f9390cf7a6151ad2a73e +0 -0
- data/tests/files/working/dot_git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/tests/files/working/dot_git/objects/e7/ea5938f9c009d32235050bca991d0b9533e440 +0 -0
- data/tests/files/working/dot_git/objects/e8/183f05f5db68b3934e93f4bf6bed2bb664e0b5 +0 -0
- data/tests/files/working/dot_git/objects/e8/bd03b163f82fba4560c11839d49361a78dec85 +0 -0
- data/tests/files/working/dot_git/objects/e9/0de8268373e4fd5ab13310b7745d47ec16813c +0 -0
- data/tests/files/working/dot_git/objects/ec/16a327a6a98367d03369b4e998baf3db379313 +0 -0
- data/tests/files/working/dot_git/objects/ec/1e3d44e160e18dbfbaa80b5b0780ccc03e678e +0 -0
- data/tests/files/working/dot_git/objects/ed/551aa66cf0c6f1a078832f80899faff0ae88dc +0 -0
- data/tests/files/working/dot_git/objects/f1/25480ee106989ec4d86554c0d5a1487ad4336a +0 -1
- data/tests/files/working/dot_git/objects/f1/410f8735f6f73d3599eb9b5cdd2fb70373335c +0 -3
- data/tests/files/working/dot_git/objects/f2/02cb755135d4263589602783b04fb32a079d88 +0 -0
- data/tests/files/working/dot_git/objects/f2/ff401fb3fc81f8abb3ca15247aadc1e22b6288 +0 -0
- data/tests/files/working/dot_git/objects/f5/501de98279c6454f510188873476f3ead0cee6 +0 -4
- data/tests/files/working/dot_git/objects/f7/5f313ca30e534aa9c42463e85108e682d3a14a +0 -0
- data/tests/files/working/dot_git/objects/f8/e9c6748331411c0d3511f90bd4e0a1a30acff0 +0 -0
- data/tests/files/working/dot_git/objects/f9/bce8995109cfab475d043a7dd9156d5e574ed3 +0 -0
- data/tests/files/working/dot_git/objects/fa/6312f71abb153ada6a0399ad710d21bb61e4d8 +0 -0
- data/tests/files/working/dot_git/objects/fb/8e78840d79085abf50edebf5b9d6b73ee0fb4c +0 -0
- data/tests/files/working/dot_git/objects/fc/b49fa99454f804799a12095292edbca48779ab +0 -0
- data/tests/files/working/dot_git/objects/fe/b2ccf88397c2d93f381176067be2727eba330b +0 -0
- data/tests/files/working/dot_git/refs/heads/git_grep +0 -1
- data/tests/files/working/dot_git/refs/heads/master +0 -1
- data/tests/files/working/dot_git/refs/heads/test +0 -1
- data/tests/files/working/dot_git/refs/heads/test_branches +0 -1
- data/tests/files/working/dot_git/refs/heads/test_object +0 -1
- data/tests/files/working/dot_git/refs/remotes/working/master +0 -1
- data/tests/files/working/dot_git/refs/tags/gitsearch1 +0 -1
- data/tests/files/working/dot_git/refs/tags/v2.5 +0 -1
- data/tests/files/working/dot_git/refs/tags/v2.6 +0 -1
- data/tests/files/working/dot_git/refs/tags/v2.7 +0 -1
- data/tests/files/working/dot_git/refs/tags/v2.8 +0 -1
- data/tests/files/working/ex_dir/ex.txt +0 -0
- data/tests/files/working/example.txt +0 -1
- data/tests/files/working/scott/newfile +0 -1
- data/tests/files/working/scott/text.txt +0 -8
- data/tests/test_helper.rb +0 -77
- data/tests/units/test_archive.rb +0 -55
- data/tests/units/test_bare.rb +0 -41
- data/tests/units/test_branch.rb +0 -92
- data/tests/units/test_config.rb +0 -31
- data/tests/units/test_diff.rb +0 -86
- data/tests/units/test_each_conflict.rb +0 -49
- data/tests/units/test_git_path.rb +0 -29
- data/tests/units/test_index_ops.rb +0 -94
- data/tests/units/test_init.rb +0 -75
- data/tests/units/test_lib.rb +0 -141
- data/tests/units/test_log.rb +0 -49
- data/tests/units/test_logger.rb +0 -38
- data/tests/units/test_merge.rb +0 -104
- data/tests/units/test_object.rb +0 -129
- data/tests/units/test_remotes.rb +0 -80
- data/tests/units/test_repack.rb +0 -30
- data/tests/units/test_stashes.rb +0 -36
- data/tests/units/test_tags.rb +0 -35
- data/tests/units/test_tree_ops.rb +0 -121
data/doc/classes/Git/Author.html
DELETED
@@ -1,175 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Git::Author</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Git::Author</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/git/author_rb.html">
|
59
|
-
lib/git/author.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Object.html">
|
69
|
-
Object
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000024">new</a>
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
|
98
|
-
<!-- if includes -->
|
99
|
-
|
100
|
-
<div id="section">
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<div id="attribute-list">
|
107
|
-
<h3 class="section-bar">Attributes</h3>
|
108
|
-
|
109
|
-
<div class="name-list">
|
110
|
-
<table>
|
111
|
-
<tr class="top-aligned-row context-row">
|
112
|
-
<td class="context-item-name">date</td>
|
113
|
-
<td class="context-item-value"> [RW] </td>
|
114
|
-
<td class="context-item-desc"></td>
|
115
|
-
</tr>
|
116
|
-
<tr class="top-aligned-row context-row">
|
117
|
-
<td class="context-item-name">email</td>
|
118
|
-
<td class="context-item-value"> [RW] </td>
|
119
|
-
<td class="context-item-desc"></td>
|
120
|
-
</tr>
|
121
|
-
<tr class="top-aligned-row context-row">
|
122
|
-
<td class="context-item-name">name</td>
|
123
|
-
<td class="context-item-value"> [RW] </td>
|
124
|
-
<td class="context-item-desc"></td>
|
125
|
-
</tr>
|
126
|
-
</table>
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<!-- if method_list -->
|
133
|
-
<div id="methods">
|
134
|
-
<h3 class="section-bar">Public Class methods</h3>
|
135
|
-
|
136
|
-
<div id="method-M000024" class="method-detail">
|
137
|
-
<a name="M000024"></a>
|
138
|
-
|
139
|
-
<div class="method-heading">
|
140
|
-
<a href="#M000024" class="method-signature">
|
141
|
-
<span class="method-name">new</span><span class="method-args">(author_string)</span>
|
142
|
-
</a>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div class="method-description">
|
146
|
-
<p><a class="source-toggle" href="#"
|
147
|
-
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
148
|
-
<div class="method-source-code" id="M000024-source">
|
149
|
-
<pre>
|
150
|
-
<span class="ruby-comment cmt"># File lib/git/author.rb, line 5</span>
|
151
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">author_string</span>)
|
152
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span> = <span class="ruby-regexp re">/(.*?) <(.*?)> (\d+) (.*)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">author_string</span>)
|
153
|
-
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]
|
154
|
-
<span class="ruby-ivar">@email</span> = <span class="ruby-identifier">m</span>[<span class="ruby-value">2</span>]
|
155
|
-
<span class="ruby-ivar">@date</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-identifier">m</span>[<span class="ruby-value">3</span>].<span class="ruby-identifier">to_i</span>)
|
156
|
-
<span class="ruby-keyword kw">end</span>
|
157
|
-
<span class="ruby-keyword kw">end</span>
|
158
|
-
</pre>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
|
164
|
-
</div>
|
165
|
-
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
|
170
|
-
<div id="validator-badges">
|
171
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
</body>
|
175
|
-
</html>
|
data/doc/classes/Git/Base.html
DELETED
@@ -1,1764 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Git::Base</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Git::Base</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/git/base_rb.html">
|
59
|
-
lib/git/base.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Object.html">
|
69
|
-
Object
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000116">add</a>
|
92
|
-
<a href="#M000128">add_remote</a>
|
93
|
-
<a href="#M000131">add_tag</a>
|
94
|
-
<a href="#M000132">archive</a>
|
95
|
-
<a href="#M000091">bare</a>
|
96
|
-
<a href="#M000111">branch</a>
|
97
|
-
<a href="#M000110">branches</a>
|
98
|
-
<a href="#M000101">chdir</a>
|
99
|
-
<a href="#M000122">checkout</a>
|
100
|
-
<a href="#M000136">checkout_index</a>
|
101
|
-
<a href="#M000094">clone</a>
|
102
|
-
<a href="#M000120">commit</a>
|
103
|
-
<a href="#M000121">commit_all</a>
|
104
|
-
<a href="#M000139">commit_tree</a>
|
105
|
-
<a href="#M000103">config</a>
|
106
|
-
<a href="#M000146">current_branch</a>
|
107
|
-
<a href="#M000115">diff</a>
|
108
|
-
<a href="#M000096">dir</a>
|
109
|
-
<a href="#M000123">fetch</a>
|
110
|
-
<a href="#M000107">gblob</a>
|
111
|
-
<a href="#M000106">gcommit</a>
|
112
|
-
<a href="#M000114">grep</a>
|
113
|
-
<a href="#M000105">gtree</a>
|
114
|
-
<a href="#M000098">index</a>
|
115
|
-
<a href="#M000093">init</a>
|
116
|
-
<a href="#M000113">lib</a>
|
117
|
-
<a href="#M000108">log</a>
|
118
|
-
<a href="#M000142">ls_files</a>
|
119
|
-
<a href="#M000125">merge</a>
|
120
|
-
<a href="#M000095">new</a>
|
121
|
-
<a href="#M000104">object</a>
|
122
|
-
<a href="#M000092">open</a>
|
123
|
-
<a href="#M000126">pull</a>
|
124
|
-
<a href="#M000124">push</a>
|
125
|
-
<a href="#M000137">read_tree</a>
|
126
|
-
<a href="#M000112">remote</a>
|
127
|
-
<a href="#M000127">remotes</a>
|
128
|
-
<a href="#M000117">remove</a>
|
129
|
-
<a href="#M000133">repack</a>
|
130
|
-
<a href="#M000097">repo</a>
|
131
|
-
<a href="#M000102">repo_size</a>
|
132
|
-
<a href="#M000118">reset</a>
|
133
|
-
<a href="#M000119">reset_hard</a>
|
134
|
-
<a href="#M000145">revparse</a>
|
135
|
-
<a href="#M000100">set_index</a>
|
136
|
-
<a href="#M000099">set_working</a>
|
137
|
-
<a href="#M000109">status</a>
|
138
|
-
<a href="#M000130">tag</a>
|
139
|
-
<a href="#M000129">tags</a>
|
140
|
-
<a href="#M000141">update_ref</a>
|
141
|
-
<a href="#M000134">with_index</a>
|
142
|
-
<a href="#M000135">with_temp_index</a>
|
143
|
-
<a href="#M000144">with_temp_working</a>
|
144
|
-
<a href="#M000143">with_working</a>
|
145
|
-
<a href="#M000140">write_and_commit_tree</a>
|
146
|
-
<a href="#M000138">write_tree</a>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
|
150
|
-
</div>
|
151
|
-
|
152
|
-
|
153
|
-
<!-- if includes -->
|
154
|
-
|
155
|
-
<div id="section">
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
<!-- if method_list -->
|
165
|
-
<div id="methods">
|
166
|
-
<h3 class="section-bar">Public Class methods</h3>
|
167
|
-
|
168
|
-
<div id="method-M000091" class="method-detail">
|
169
|
-
<a name="M000091"></a>
|
170
|
-
|
171
|
-
<div class="method-heading">
|
172
|
-
<a href="#M000091" class="method-signature">
|
173
|
-
<span class="method-name">bare</span><span class="method-args">(git_dir)</span>
|
174
|
-
</a>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
<div class="method-description">
|
178
|
-
<p>
|
179
|
-
opens a bare <a href="../Git.html">Git</a> <a
|
180
|
-
href="Repository.html">Repository</a> - no working directory options
|
181
|
-
</p>
|
182
|
-
<p><a class="source-toggle" href="#"
|
183
|
-
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
184
|
-
<div class="method-source-code" id="M000091-source">
|
185
|
-
<pre>
|
186
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 12</span>
|
187
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bare</span>(<span class="ruby-identifier">git_dir</span>)
|
188
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">git_dir</span>
|
189
|
-
<span class="ruby-keyword kw">end</span>
|
190
|
-
</pre>
|
191
|
-
</div>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div id="method-M000094" class="method-detail">
|
196
|
-
<a name="M000094"></a>
|
197
|
-
|
198
|
-
<div class="method-heading">
|
199
|
-
<a href="#M000094" class="method-signature">
|
200
|
-
<span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span>
|
201
|
-
</a>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<div class="method-description">
|
205
|
-
<p>
|
206
|
-
clones a git repository locally
|
207
|
-
</p>
|
208
|
-
<pre>
|
209
|
-
repository - http://repo.or.cz/w/sinatra.git
|
210
|
-
name - sinatra
|
211
|
-
</pre>
|
212
|
-
<p>
|
213
|
-
options:
|
214
|
-
</p>
|
215
|
-
<pre>
|
216
|
-
:repository
|
217
|
-
|
218
|
-
:bare
|
219
|
-
or
|
220
|
-
:working_directory
|
221
|
-
:index_file
|
222
|
-
</pre>
|
223
|
-
<p><a class="source-toggle" href="#"
|
224
|
-
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
225
|
-
<div class="method-source-code" id="M000094-source">
|
226
|
-
<pre>
|
227
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 60</span>
|
228
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span> = {})
|
229
|
-
<span class="ruby-comment cmt"># run git-clone </span>
|
230
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Lib</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span>))
|
231
|
-
<span class="ruby-keyword kw">end</span>
|
232
|
-
</pre>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div id="method-M000093" class="method-detail">
|
238
|
-
<a name="M000093"></a>
|
239
|
-
|
240
|
-
<div class="method-heading">
|
241
|
-
<a href="#M000093" class="method-signature">
|
242
|
-
<span class="method-name">init</span><span class="method-args">(working_dir, opts = {})</span>
|
243
|
-
</a>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div class="method-description">
|
247
|
-
<p>
|
248
|
-
initializes a git repository
|
249
|
-
</p>
|
250
|
-
<p>
|
251
|
-
options:
|
252
|
-
</p>
|
253
|
-
<pre>
|
254
|
-
:repository
|
255
|
-
:index_file
|
256
|
-
</pre>
|
257
|
-
<p><a class="source-toggle" href="#"
|
258
|
-
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
259
|
-
<div class="method-source-code" id="M000093-source">
|
260
|
-
<pre>
|
261
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 31</span>
|
262
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">opts</span> = {})
|
263
|
-
<span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>,
|
264
|
-
<span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>)}
|
265
|
-
<span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>)
|
266
|
-
|
267
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]
|
268
|
-
<span class="ruby-comment cmt"># if !working_dir, make it</span>
|
269
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>])
|
270
|
-
<span class="ruby-keyword kw">end</span>
|
271
|
-
|
272
|
-
<span class="ruby-comment cmt"># run git_init there</span>
|
273
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Lib</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>).<span class="ruby-identifier">init</span>
|
274
|
-
|
275
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>)
|
276
|
-
<span class="ruby-keyword kw">end</span>
|
277
|
-
</pre>
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
</div>
|
281
|
-
|
282
|
-
<div id="method-M000095" class="method-detail">
|
283
|
-
<a name="M000095"></a>
|
284
|
-
|
285
|
-
<div class="method-heading">
|
286
|
-
<a href="#M000095" class="method-signature">
|
287
|
-
<span class="method-name">new</span><span class="method-args">(options = {})</span>
|
288
|
-
</a>
|
289
|
-
</div>
|
290
|
-
|
291
|
-
<div class="method-description">
|
292
|
-
<p><a class="source-toggle" href="#"
|
293
|
-
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
294
|
-
<div class="method-source-code" id="M000095-source">
|
295
|
-
<pre>
|
296
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 65</span>
|
297
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {})
|
298
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">working_dir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>]
|
299
|
-
<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>]
|
300
|
-
<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>, <span class="ruby-value str">'index'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>]
|
301
|
-
<span class="ruby-keyword kw">end</span>
|
302
|
-
|
303
|
-
<span class="ruby-ivar">@working_directory</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkingDirectory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>]
|
304
|
-
<span class="ruby-ivar">@repository</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Repository</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>]
|
305
|
-
<span class="ruby-ivar">@index</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Index</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>], <span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>]
|
306
|
-
<span class="ruby-keyword kw">end</span>
|
307
|
-
</pre>
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
<div id="method-M000092" class="method-detail">
|
313
|
-
<a name="M000092"></a>
|
314
|
-
|
315
|
-
<div class="method-heading">
|
316
|
-
<a href="#M000092" class="method-signature">
|
317
|
-
<span class="method-name">open</span><span class="method-args">(working_dir, opts={})</span>
|
318
|
-
</a>
|
319
|
-
</div>
|
320
|
-
|
321
|
-
<div class="method-description">
|
322
|
-
<p>
|
323
|
-
opens a new <a href="../Git.html">Git</a> Project from a working directory
|
324
|
-
you can specify non-standard git_dir and index file in the options
|
325
|
-
</p>
|
326
|
-
<p><a class="source-toggle" href="#"
|
327
|
-
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
328
|
-
<div class="method-source-code" id="M000092-source">
|
329
|
-
<pre>
|
330
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 18</span>
|
331
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">opts</span>={})
|
332
|
-
<span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>}
|
333
|
-
<span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>)
|
334
|
-
|
335
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>)
|
336
|
-
<span class="ruby-keyword kw">end</span>
|
337
|
-
</pre>
|
338
|
-
</div>
|
339
|
-
</div>
|
340
|
-
</div>
|
341
|
-
|
342
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
343
|
-
|
344
|
-
<div id="method-M000116" class="method-detail">
|
345
|
-
<a name="M000116"></a>
|
346
|
-
|
347
|
-
<div class="method-heading">
|
348
|
-
<a href="#M000116" class="method-signature">
|
349
|
-
<span class="method-name">add</span><span class="method-args">(path = '.')</span>
|
350
|
-
</a>
|
351
|
-
</div>
|
352
|
-
|
353
|
-
<div class="method-description">
|
354
|
-
<p>
|
355
|
-
adds files from the working directory to the git repository
|
356
|
-
</p>
|
357
|
-
<p><a class="source-toggle" href="#"
|
358
|
-
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
359
|
-
<div class="method-source-code" id="M000116-source">
|
360
|
-
<pre>
|
361
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 234</span>
|
362
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>)
|
363
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>)
|
364
|
-
<span class="ruby-keyword kw">end</span>
|
365
|
-
</pre>
|
366
|
-
</div>
|
367
|
-
</div>
|
368
|
-
</div>
|
369
|
-
|
370
|
-
<div id="method-M000128" class="method-detail">
|
371
|
-
<a name="M000128"></a>
|
372
|
-
|
373
|
-
<div class="method-heading">
|
374
|
-
<a href="#M000128" class="method-signature">
|
375
|
-
<span class="method-name">add_remote</span><span class="method-args">(name, url, opts = {})</span>
|
376
|
-
</a>
|
377
|
-
</div>
|
378
|
-
|
379
|
-
<div class="method-description">
|
380
|
-
<p>
|
381
|
-
adds a new remote to this repository url can be a git url or a <a
|
382
|
-
href="Base.html">Git::Base</a> object if it’s a local reference
|
383
|
-
</p>
|
384
|
-
<pre>
|
385
|
-
@git.add_remote('scotts_git', 'git://repo.or.cz/rubygit.git')
|
386
|
-
@git.fetch('scotts_git')
|
387
|
-
@git.merge('scotts_git/master')
|
388
|
-
</pre>
|
389
|
-
<p><a class="source-toggle" href="#"
|
390
|
-
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
391
|
-
<div class="method-source-code" id="M000128-source">
|
392
|
-
<pre>
|
393
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 312</span>
|
394
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_remote</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">opts</span> = {})
|
395
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>)
|
396
|
-
<span class="ruby-identifier">url</span> = <span class="ruby-identifier">url</span>.<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span>
|
397
|
-
<span class="ruby-keyword kw">end</span>
|
398
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remote_add</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">opts</span>)
|
399
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">name</span>)
|
400
|
-
<span class="ruby-keyword kw">end</span>
|
401
|
-
</pre>
|
402
|
-
</div>
|
403
|
-
</div>
|
404
|
-
</div>
|
405
|
-
|
406
|
-
<div id="method-M000131" class="method-detail">
|
407
|
-
<a name="M000131"></a>
|
408
|
-
|
409
|
-
<div class="method-heading">
|
410
|
-
<a href="#M000131" class="method-signature">
|
411
|
-
<span class="method-name">add_tag</span><span class="method-args">(tag_name)</span>
|
412
|
-
</a>
|
413
|
-
</div>
|
414
|
-
|
415
|
-
<div class="method-description">
|
416
|
-
<p>
|
417
|
-
creates a new git tag (Git::Tag)
|
418
|
-
</p>
|
419
|
-
<p><a class="source-toggle" href="#"
|
420
|
-
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
421
|
-
<div class="method-source-code" id="M000131-source">
|
422
|
-
<pre>
|
423
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 331</span>
|
424
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag_name</span>)
|
425
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>)
|
426
|
-
<span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>)
|
427
|
-
<span class="ruby-keyword kw">end</span>
|
428
|
-
</pre>
|
429
|
-
</div>
|
430
|
-
</div>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
<div id="method-M000132" class="method-detail">
|
434
|
-
<a name="M000132"></a>
|
435
|
-
|
436
|
-
<div class="method-heading">
|
437
|
-
<a href="#M000132" class="method-signature">
|
438
|
-
<span class="method-name">archive</span><span class="method-args">(treeish, file = nil, opts = {})</span>
|
439
|
-
</a>
|
440
|
-
</div>
|
441
|
-
|
442
|
-
<div class="method-description">
|
443
|
-
<p>
|
444
|
-
creates an archive file of the given tree-ish
|
445
|
-
</p>
|
446
|
-
<p><a class="source-toggle" href="#"
|
447
|
-
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
448
|
-
<div class="method-source-code" id="M000132-source">
|
449
|
-
<pre>
|
450
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 337</span>
|
451
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">archive</span>(<span class="ruby-identifier">treeish</span>, <span class="ruby-identifier">file</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
452
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">object</span>(<span class="ruby-identifier">treeish</span>).<span class="ruby-identifier">archive</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">opts</span>)
|
453
|
-
<span class="ruby-keyword kw">end</span>
|
454
|
-
</pre>
|
455
|
-
</div>
|
456
|
-
</div>
|
457
|
-
</div>
|
458
|
-
|
459
|
-
<div id="method-M000111" class="method-detail">
|
460
|
-
<a name="M000111"></a>
|
461
|
-
|
462
|
-
<div class="method-heading">
|
463
|
-
<a href="#M000111" class="method-signature">
|
464
|
-
<span class="method-name">branch</span><span class="method-args">(branch_name = 'master')</span>
|
465
|
-
</a>
|
466
|
-
</div>
|
467
|
-
|
468
|
-
<div class="method-description">
|
469
|
-
<p>
|
470
|
-
returns a <a href="Branch.html">Git::Branch</a> object for branch_name
|
471
|
-
</p>
|
472
|
-
<p><a class="source-toggle" href="#"
|
473
|
-
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
474
|
-
<div class="method-source-code" id="M000111-source">
|
475
|
-
<pre>
|
476
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 189</span>
|
477
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch_name</span> = <span class="ruby-value str">'master'</span>)
|
478
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Branch</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">branch_name</span>)
|
479
|
-
<span class="ruby-keyword kw">end</span>
|
480
|
-
</pre>
|
481
|
-
</div>
|
482
|
-
</div>
|
483
|
-
</div>
|
484
|
-
|
485
|
-
<div id="method-M000110" class="method-detail">
|
486
|
-
<a name="M000110"></a>
|
487
|
-
|
488
|
-
<div class="method-heading">
|
489
|
-
<a href="#M000110" class="method-signature">
|
490
|
-
<span class="method-name">branches</span><span class="method-args">()</span>
|
491
|
-
</a>
|
492
|
-
</div>
|
493
|
-
|
494
|
-
<div class="method-description">
|
495
|
-
<p>
|
496
|
-
returns a <a href="Branches.html">Git::Branches</a> object of all the <a
|
497
|
-
href="Branch.html">Git::Branch</a> objects for this repo
|
498
|
-
</p>
|
499
|
-
<p><a class="source-toggle" href="#"
|
500
|
-
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
501
|
-
<div class="method-source-code" id="M000110-source">
|
502
|
-
<pre>
|
503
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 184</span>
|
504
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span>
|
505
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Branches</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
506
|
-
<span class="ruby-keyword kw">end</span>
|
507
|
-
</pre>
|
508
|
-
</div>
|
509
|
-
</div>
|
510
|
-
</div>
|
511
|
-
|
512
|
-
<div id="method-M000101" class="method-detail">
|
513
|
-
<a name="M000101"></a>
|
514
|
-
|
515
|
-
<div class="method-heading">
|
516
|
-
<a href="#M000101" class="method-signature">
|
517
|
-
<span class="method-name">chdir</span><span class="method-args">() {|dir.path| ...}</span>
|
518
|
-
</a>
|
519
|
-
</div>
|
520
|
-
|
521
|
-
<div class="method-description">
|
522
|
-
<p>
|
523
|
-
changes current working directory for a block to the git working directory
|
524
|
-
</p>
|
525
|
-
<p>
|
526
|
-
example
|
527
|
-
</p>
|
528
|
-
<pre>
|
529
|
-
@git.chdir do
|
530
|
-
# write files
|
531
|
-
@git.add
|
532
|
-
@git.commit('message')
|
533
|
-
end
|
534
|
-
</pre>
|
535
|
-
<p><a class="source-toggle" href="#"
|
536
|
-
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
537
|
-
<div class="method-source-code" id="M000101-source">
|
538
|
-
<pre>
|
539
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 115</span>
|
540
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span>
|
541
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">do</span>
|
542
|
-
<span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span>
|
543
|
-
<span class="ruby-keyword kw">end</span>
|
544
|
-
<span class="ruby-keyword kw">end</span>
|
545
|
-
</pre>
|
546
|
-
</div>
|
547
|
-
</div>
|
548
|
-
</div>
|
549
|
-
|
550
|
-
<div id="method-M000122" class="method-detail">
|
551
|
-
<a name="M000122"></a>
|
552
|
-
|
553
|
-
<div class="method-heading">
|
554
|
-
<a href="#M000122" class="method-signature">
|
555
|
-
<span class="method-name">checkout</span><span class="method-args">(branch = 'master', opts = {})</span>
|
556
|
-
</a>
|
557
|
-
</div>
|
558
|
-
|
559
|
-
<div class="method-description">
|
560
|
-
<p>
|
561
|
-
checks out a branch as the new git working directory
|
562
|
-
</p>
|
563
|
-
<p><a class="source-toggle" href="#"
|
564
|
-
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
565
|
-
<div class="method-source-code" id="M000122-source">
|
566
|
-
<pre>
|
567
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 268</span>
|
568
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">opts</span> = {})
|
569
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span>)
|
570
|
-
<span class="ruby-keyword kw">end</span>
|
571
|
-
</pre>
|
572
|
-
</div>
|
573
|
-
</div>
|
574
|
-
</div>
|
575
|
-
|
576
|
-
<div id="method-M000136" class="method-detail">
|
577
|
-
<a name="M000136"></a>
|
578
|
-
|
579
|
-
<div class="method-heading">
|
580
|
-
<a href="#M000136" class="method-signature">
|
581
|
-
<span class="method-name">checkout_index</span><span class="method-args">(opts = {})</span>
|
582
|
-
</a>
|
583
|
-
</div>
|
584
|
-
|
585
|
-
<div class="method-description">
|
586
|
-
<p><a class="source-toggle" href="#"
|
587
|
-
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
588
|
-
<div class="method-source-code" id="M000136-source">
|
589
|
-
<pre>
|
590
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 364</span>
|
591
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout_index</span>(<span class="ruby-identifier">opts</span> = {})
|
592
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">checkout_index</span>(<span class="ruby-identifier">opts</span>)
|
593
|
-
<span class="ruby-keyword kw">end</span>
|
594
|
-
</pre>
|
595
|
-
</div>
|
596
|
-
</div>
|
597
|
-
</div>
|
598
|
-
|
599
|
-
<div id="method-M000120" class="method-detail">
|
600
|
-
<a name="M000120"></a>
|
601
|
-
|
602
|
-
<div class="method-heading">
|
603
|
-
<a href="#M000120" class="method-signature">
|
604
|
-
<span class="method-name">commit</span><span class="method-args">(message, opts = {})</span>
|
605
|
-
</a>
|
606
|
-
</div>
|
607
|
-
|
608
|
-
<div class="method-description">
|
609
|
-
<p>
|
610
|
-
commits all pending changes in the index file to the git repository
|
611
|
-
</p>
|
612
|
-
<p><a class="source-toggle" href="#"
|
613
|
-
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
614
|
-
<div class="method-source-code" id="M000120-source">
|
615
|
-
<pre>
|
616
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 255</span>
|
617
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {})
|
618
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span>)
|
619
|
-
<span class="ruby-keyword kw">end</span>
|
620
|
-
</pre>
|
621
|
-
</div>
|
622
|
-
</div>
|
623
|
-
</div>
|
624
|
-
|
625
|
-
<div id="method-M000121" class="method-detail">
|
626
|
-
<a name="M000121"></a>
|
627
|
-
|
628
|
-
<div class="method-heading">
|
629
|
-
<a href="#M000121" class="method-signature">
|
630
|
-
<span class="method-name">commit_all</span><span class="method-args">(message, opts = {})</span>
|
631
|
-
</a>
|
632
|
-
</div>
|
633
|
-
|
634
|
-
<div class="method-description">
|
635
|
-
<p>
|
636
|
-
commits all pending changes in the index file to the git repository, but
|
637
|
-
automatically adds all modified files without having to explicitly calling
|
638
|
-
@git.add() on them.
|
639
|
-
</p>
|
640
|
-
<p><a class="source-toggle" href="#"
|
641
|
-
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
642
|
-
<div class="method-source-code" id="M000121-source">
|
643
|
-
<pre>
|
644
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 262</span>
|
645
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {})
|
646
|
-
<span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:add_all</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>)
|
647
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span>)
|
648
|
-
<span class="ruby-keyword kw">end</span>
|
649
|
-
</pre>
|
650
|
-
</div>
|
651
|
-
</div>
|
652
|
-
</div>
|
653
|
-
|
654
|
-
<div id="method-M000139" class="method-detail">
|
655
|
-
<a name="M000139"></a>
|
656
|
-
|
657
|
-
<div class="method-heading">
|
658
|
-
<a href="#M000139" class="method-signature">
|
659
|
-
<span class="method-name">commit_tree</span><span class="method-args">(tree = nil, opts = {})</span>
|
660
|
-
</a>
|
661
|
-
</div>
|
662
|
-
|
663
|
-
<div class="method-description">
|
664
|
-
<p><a class="source-toggle" href="#"
|
665
|
-
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
666
|
-
<div class="method-source-code" id="M000139-source">
|
667
|
-
<pre>
|
668
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 376</span>
|
669
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_tree</span>(<span class="ruby-identifier">tree</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
670
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span><span class="ruby-operator">::</span><span class="ruby-constant">Commit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">commit_tree</span>(<span class="ruby-identifier">tree</span>, <span class="ruby-identifier">opts</span>))
|
671
|
-
<span class="ruby-keyword kw">end</span>
|
672
|
-
</pre>
|
673
|
-
</div>
|
674
|
-
</div>
|
675
|
-
</div>
|
676
|
-
|
677
|
-
<div id="method-M000103" class="method-detail">
|
678
|
-
<a name="M000103"></a>
|
679
|
-
|
680
|
-
<div class="method-heading">
|
681
|
-
<a href="#M000103" class="method-signature">
|
682
|
-
<span class="method-name">config</span><span class="method-args">(name = nil, value = nil)</span>
|
683
|
-
</a>
|
684
|
-
</div>
|
685
|
-
|
686
|
-
<div class="method-description">
|
687
|
-
<p>
|
688
|
-
g.config(‘user.name’, ‘Scott Chacon’) # sets value
|
689
|
-
g.config(‘user.email’, ‘email@email.com’) # sets
|
690
|
-
value g.config(‘user.name’) # returns ‘Scott
|
691
|
-
Chacon’ g.config # returns whole config hash
|
692
|
-
</p>
|
693
|
-
<p><a class="source-toggle" href="#"
|
694
|
-
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
695
|
-
<div class="method-source-code" id="M000103-source">
|
696
|
-
<pre>
|
697
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 134</span>
|
698
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>)
|
699
|
-
<span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">name</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>)
|
700
|
-
<span class="ruby-comment cmt"># set value</span>
|
701
|
-
<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
702
|
-
<span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">name</span>)
|
703
|
-
<span class="ruby-comment cmt"># return value</span>
|
704
|
-
<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_get</span>(<span class="ruby-identifier">name</span>)
|
705
|
-
<span class="ruby-keyword kw">else</span>
|
706
|
-
<span class="ruby-comment cmt"># return hash</span>
|
707
|
-
<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_list</span>
|
708
|
-
<span class="ruby-keyword kw">end</span>
|
709
|
-
<span class="ruby-keyword kw">end</span>
|
710
|
-
</pre>
|
711
|
-
</div>
|
712
|
-
</div>
|
713
|
-
</div>
|
714
|
-
|
715
|
-
<div id="method-M000146" class="method-detail">
|
716
|
-
<a name="M000146"></a>
|
717
|
-
|
718
|
-
<div class="method-heading">
|
719
|
-
<a href="#M000146" class="method-signature">
|
720
|
-
<span class="method-name">current_branch</span><span class="method-args">()</span>
|
721
|
-
</a>
|
722
|
-
</div>
|
723
|
-
|
724
|
-
<div class="method-description">
|
725
|
-
<p>
|
726
|
-
returns the name of the branch the working directory is currently on
|
727
|
-
</p>
|
728
|
-
<p><a class="source-toggle" href="#"
|
729
|
-
onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
|
730
|
-
<div class="method-source-code" id="M000146-source">
|
731
|
-
<pre>
|
732
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 425</span>
|
733
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_branch</span>
|
734
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_current</span>
|
735
|
-
<span class="ruby-keyword kw">end</span>
|
736
|
-
</pre>
|
737
|
-
</div>
|
738
|
-
</div>
|
739
|
-
</div>
|
740
|
-
|
741
|
-
<div id="method-M000115" class="method-detail">
|
742
|
-
<a name="M000115"></a>
|
743
|
-
|
744
|
-
<div class="method-heading">
|
745
|
-
<a href="#M000115" class="method-signature">
|
746
|
-
<span class="method-name">diff</span><span class="method-args">(objectish = 'HEAD', obj2 = nil)</span>
|
747
|
-
</a>
|
748
|
-
</div>
|
749
|
-
|
750
|
-
<div class="method-description">
|
751
|
-
<p>
|
752
|
-
returns a <a href="Diff.html">Git::Diff</a> object
|
753
|
-
</p>
|
754
|
-
<p><a class="source-toggle" href="#"
|
755
|
-
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
756
|
-
<div class="method-source-code" id="M000115-source">
|
757
|
-
<pre>
|
758
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 229</span>
|
759
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>)
|
760
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Diff</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-identifier">obj2</span>)
|
761
|
-
<span class="ruby-keyword kw">end</span>
|
762
|
-
</pre>
|
763
|
-
</div>
|
764
|
-
</div>
|
765
|
-
</div>
|
766
|
-
|
767
|
-
<div id="method-M000096" class="method-detail">
|
768
|
-
<a name="M000096"></a>
|
769
|
-
|
770
|
-
<div class="method-heading">
|
771
|
-
<a href="#M000096" class="method-signature">
|
772
|
-
<span class="method-name">dir</span><span class="method-args">()</span>
|
773
|
-
</a>
|
774
|
-
</div>
|
775
|
-
|
776
|
-
<div class="method-description">
|
777
|
-
<p>
|
778
|
-
returns a reference to the working directory
|
779
|
-
</p>
|
780
|
-
<pre>
|
781
|
-
@git.dir.path
|
782
|
-
@git.dir.writeable?
|
783
|
-
</pre>
|
784
|
-
<p><a class="source-toggle" href="#"
|
785
|
-
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
786
|
-
<div class="method-source-code" id="M000096-source">
|
787
|
-
<pre>
|
788
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 80</span>
|
789
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span>
|
790
|
-
<span class="ruby-ivar">@working_directory</span>
|
791
|
-
<span class="ruby-keyword kw">end</span>
|
792
|
-
</pre>
|
793
|
-
</div>
|
794
|
-
</div>
|
795
|
-
</div>
|
796
|
-
|
797
|
-
<div id="method-M000123" class="method-detail">
|
798
|
-
<a name="M000123"></a>
|
799
|
-
|
800
|
-
<div class="method-heading">
|
801
|
-
<a href="#M000123" class="method-signature">
|
802
|
-
<span class="method-name">fetch</span><span class="method-args">(remote = 'origin')</span>
|
803
|
-
</a>
|
804
|
-
</div>
|
805
|
-
|
806
|
-
<div class="method-description">
|
807
|
-
<p>
|
808
|
-
fetches changes from a remote branch - this does not modify the working
|
809
|
-
directory, it just gets the changes from the remote if there are any
|
810
|
-
</p>
|
811
|
-
<p><a class="source-toggle" href="#"
|
812
|
-
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
813
|
-
<div class="method-source-code" id="M000123-source">
|
814
|
-
<pre>
|
815
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 274</span>
|
816
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>)
|
817
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>)
|
818
|
-
<span class="ruby-keyword kw">end</span>
|
819
|
-
</pre>
|
820
|
-
</div>
|
821
|
-
</div>
|
822
|
-
</div>
|
823
|
-
|
824
|
-
<div id="method-M000107" class="method-detail">
|
825
|
-
<a name="M000107"></a>
|
826
|
-
|
827
|
-
<div class="method-heading">
|
828
|
-
<a href="#M000107" class="method-signature">
|
829
|
-
<span class="method-name">gblob</span><span class="method-args">(objectish)</span>
|
830
|
-
</a>
|
831
|
-
</div>
|
832
|
-
|
833
|
-
<div class="method-description">
|
834
|
-
<p><a class="source-toggle" href="#"
|
835
|
-
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
836
|
-
<div class="method-source-code" id="M000107-source">
|
837
|
-
<pre>
|
838
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 169</span>
|
839
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gblob</span>(<span class="ruby-identifier">objectish</span>)
|
840
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-value str">'blob'</span>)
|
841
|
-
<span class="ruby-keyword kw">end</span>
|
842
|
-
</pre>
|
843
|
-
</div>
|
844
|
-
</div>
|
845
|
-
</div>
|
846
|
-
|
847
|
-
<div id="method-M000106" class="method-detail">
|
848
|
-
<a name="M000106"></a>
|
849
|
-
|
850
|
-
<div class="method-heading">
|
851
|
-
<a href="#M000106" class="method-signature">
|
852
|
-
<span class="method-name">gcommit</span><span class="method-args">(objectish)</span>
|
853
|
-
</a>
|
854
|
-
</div>
|
855
|
-
|
856
|
-
<div class="method-description">
|
857
|
-
<p><a class="source-toggle" href="#"
|
858
|
-
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
859
|
-
<div class="method-source-code" id="M000106-source">
|
860
|
-
<pre>
|
861
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 165</span>
|
862
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gcommit</span>(<span class="ruby-identifier">objectish</span>)
|
863
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-value str">'commit'</span>)
|
864
|
-
<span class="ruby-keyword kw">end</span>
|
865
|
-
</pre>
|
866
|
-
</div>
|
867
|
-
</div>
|
868
|
-
</div>
|
869
|
-
|
870
|
-
<div id="method-M000114" class="method-detail">
|
871
|
-
<a name="M000114"></a>
|
872
|
-
|
873
|
-
<div class="method-heading">
|
874
|
-
<a href="#M000114" class="method-signature">
|
875
|
-
<span class="method-name">grep</span><span class="method-args">(string)</span>
|
876
|
-
</a>
|
877
|
-
</div>
|
878
|
-
|
879
|
-
<div class="method-description">
|
880
|
-
<p>
|
881
|
-
will run a grep for ‘string’ on the HEAD of the git repository
|
882
|
-
</p>
|
883
|
-
<p>
|
884
|
-
to be more surgical in your grep, you can call grep() off a specific git
|
885
|
-
object. for example:
|
886
|
-
</p>
|
887
|
-
<pre>
|
888
|
-
@git.object("v2.3").grep('TODO')
|
889
|
-
</pre>
|
890
|
-
<p>
|
891
|
-
in any case, it returns a hash of arrays of the type:
|
892
|
-
</p>
|
893
|
-
<pre>
|
894
|
-
hsh[tree-ish] = [[line_no, match], [line_no, match2]]
|
895
|
-
hsh[tree-ish] = [[line_no, match], [line_no, match2]]
|
896
|
-
</pre>
|
897
|
-
<p>
|
898
|
-
so you might use it like this:
|
899
|
-
</p>
|
900
|
-
<pre>
|
901
|
-
@git.grep("TODO").each do |sha, arr|
|
902
|
-
puts "in blob #{sha}:"
|
903
|
-
arr.each do |match|
|
904
|
-
puts "\t line #{match[0]}: '#{match[1]}'"
|
905
|
-
end
|
906
|
-
end
|
907
|
-
</pre>
|
908
|
-
<p><a class="source-toggle" href="#"
|
909
|
-
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
910
|
-
<div class="method-source-code" id="M000114-source">
|
911
|
-
<pre>
|
912
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 224</span>
|
913
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>)
|
914
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">object</span>(<span class="ruby-value str">'HEAD'</span>).<span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>)
|
915
|
-
<span class="ruby-keyword kw">end</span>
|
916
|
-
</pre>
|
917
|
-
</div>
|
918
|
-
</div>
|
919
|
-
</div>
|
920
|
-
|
921
|
-
<div id="method-M000105" class="method-detail">
|
922
|
-
<a name="M000105"></a>
|
923
|
-
|
924
|
-
<div class="method-heading">
|
925
|
-
<a href="#M000105" class="method-signature">
|
926
|
-
<span class="method-name">gtree</span><span class="method-args">(objectish)</span>
|
927
|
-
</a>
|
928
|
-
</div>
|
929
|
-
|
930
|
-
<div class="method-description">
|
931
|
-
<p><a class="source-toggle" href="#"
|
932
|
-
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
933
|
-
<div class="method-source-code" id="M000105-source">
|
934
|
-
<pre>
|
935
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 161</span>
|
936
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gtree</span>(<span class="ruby-identifier">objectish</span>)
|
937
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-value str">'tree'</span>)
|
938
|
-
<span class="ruby-keyword kw">end</span>
|
939
|
-
</pre>
|
940
|
-
</div>
|
941
|
-
</div>
|
942
|
-
</div>
|
943
|
-
|
944
|
-
<div id="method-M000098" class="method-detail">
|
945
|
-
<a name="M000098"></a>
|
946
|
-
|
947
|
-
<div class="method-heading">
|
948
|
-
<a href="#M000098" class="method-signature">
|
949
|
-
<span class="method-name">index</span><span class="method-args">()</span>
|
950
|
-
</a>
|
951
|
-
</div>
|
952
|
-
|
953
|
-
<div class="method-description">
|
954
|
-
<p>
|
955
|
-
returns reference to the git index file
|
956
|
-
</p>
|
957
|
-
<p><a class="source-toggle" href="#"
|
958
|
-
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
959
|
-
<div class="method-source-code" id="M000098-source">
|
960
|
-
<pre>
|
961
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 91</span>
|
962
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
963
|
-
<span class="ruby-ivar">@index</span>
|
964
|
-
<span class="ruby-keyword kw">end</span>
|
965
|
-
</pre>
|
966
|
-
</div>
|
967
|
-
</div>
|
968
|
-
</div>
|
969
|
-
|
970
|
-
<div id="method-M000113" class="method-detail">
|
971
|
-
<a name="M000113"></a>
|
972
|
-
|
973
|
-
<div class="method-heading">
|
974
|
-
<a href="#M000113" class="method-signature">
|
975
|
-
<span class="method-name">lib</span><span class="method-args">()</span>
|
976
|
-
</a>
|
977
|
-
</div>
|
978
|
-
|
979
|
-
<div class="method-description">
|
980
|
-
<p>
|
981
|
-
this is a convenience method for accessing the class that wraps all the
|
982
|
-
actual ‘git’ forked system calls. At some point I hope to
|
983
|
-
replace the <a href="Lib.html">Git::Lib</a> class with one that uses native
|
984
|
-
methods or libgit C bindings
|
985
|
-
</p>
|
986
|
-
<p><a class="source-toggle" href="#"
|
987
|
-
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
988
|
-
<div class="method-source-code" id="M000113-source">
|
989
|
-
<pre>
|
990
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 201</span>
|
991
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span>
|
992
|
-
<span class="ruby-ivar">@lib</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Lib</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
993
|
-
<span class="ruby-keyword kw">end</span>
|
994
|
-
</pre>
|
995
|
-
</div>
|
996
|
-
</div>
|
997
|
-
</div>
|
998
|
-
|
999
|
-
<div id="method-M000108" class="method-detail">
|
1000
|
-
<a name="M000108"></a>
|
1001
|
-
|
1002
|
-
<div class="method-heading">
|
1003
|
-
<a href="#M000108" class="method-signature">
|
1004
|
-
<span class="method-name">log</span><span class="method-args">(count = 30)</span>
|
1005
|
-
</a>
|
1006
|
-
</div>
|
1007
|
-
|
1008
|
-
<div class="method-description">
|
1009
|
-
<p>
|
1010
|
-
returns a <a href="Log.html">Git::Log</a> object with count commits
|
1011
|
-
</p>
|
1012
|
-
<p><a class="source-toggle" href="#"
|
1013
|
-
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
1014
|
-
<div class="method-source-code" id="M000108-source">
|
1015
|
-
<pre>
|
1016
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 174</span>
|
1017
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>)
|
1018
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">count</span>)
|
1019
|
-
<span class="ruby-keyword kw">end</span>
|
1020
|
-
</pre>
|
1021
|
-
</div>
|
1022
|
-
</div>
|
1023
|
-
</div>
|
1024
|
-
|
1025
|
-
<div id="method-M000142" class="method-detail">
|
1026
|
-
<a name="M000142"></a>
|
1027
|
-
|
1028
|
-
<div class="method-heading">
|
1029
|
-
<a href="#M000142" class="method-signature">
|
1030
|
-
<span class="method-name">ls_files</span><span class="method-args">()</span>
|
1031
|
-
</a>
|
1032
|
-
</div>
|
1033
|
-
|
1034
|
-
<div class="method-description">
|
1035
|
-
<p><a class="source-toggle" href="#"
|
1036
|
-
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
1037
|
-
<div class="method-source-code" id="M000142-source">
|
1038
|
-
<pre>
|
1039
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 390</span>
|
1040
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ls_files</span>
|
1041
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">ls_files</span>
|
1042
|
-
<span class="ruby-keyword kw">end</span>
|
1043
|
-
</pre>
|
1044
|
-
</div>
|
1045
|
-
</div>
|
1046
|
-
</div>
|
1047
|
-
|
1048
|
-
<div id="method-M000125" class="method-detail">
|
1049
|
-
<a name="M000125"></a>
|
1050
|
-
|
1051
|
-
<div class="method-heading">
|
1052
|
-
<a href="#M000125" class="method-signature">
|
1053
|
-
<span class="method-name">merge</span><span class="method-args">(branch, message = 'merge')</span>
|
1054
|
-
</a>
|
1055
|
-
</div>
|
1056
|
-
|
1057
|
-
<div class="method-description">
|
1058
|
-
<p>
|
1059
|
-
merges one or more branches into the current working branch
|
1060
|
-
</p>
|
1061
|
-
<p>
|
1062
|
-
you can specify more than one branch to merge by passing an array of
|
1063
|
-
branches
|
1064
|
-
</p>
|
1065
|
-
<p><a class="source-toggle" href="#"
|
1066
|
-
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
1067
|
-
<div class="method-source-code" id="M000125-source">
|
1068
|
-
<pre>
|
1069
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 290</span>
|
1070
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'merge'</span>)
|
1071
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>)
|
1072
|
-
<span class="ruby-keyword kw">end</span>
|
1073
|
-
</pre>
|
1074
|
-
</div>
|
1075
|
-
</div>
|
1076
|
-
</div>
|
1077
|
-
|
1078
|
-
<div id="method-M000104" class="method-detail">
|
1079
|
-
<a name="M000104"></a>
|
1080
|
-
|
1081
|
-
<div class="method-heading">
|
1082
|
-
<a href="#M000104" class="method-signature">
|
1083
|
-
<span class="method-name">object</span><span class="method-args">(objectish)</span>
|
1084
|
-
</a>
|
1085
|
-
</div>
|
1086
|
-
|
1087
|
-
<div class="method-description">
|
1088
|
-
<p>
|
1089
|
-
returns a <a href="Object.html">Git::Object</a> of the appropriate type you
|
1090
|
-
can also call @git.gtree(‘tree’), but that’s just for
|
1091
|
-
readability. If you call @git.gtree(‘HEAD’) it will still
|
1092
|
-
return a <a href="Object/Commit.html">Git::Object::Commit</a> object.
|
1093
|
-
</p>
|
1094
|
-
<p>
|
1095
|
-
@git.object calls a factory method that will run a rev-parse on the
|
1096
|
-
objectish and determine the type of the object and return an appropriate
|
1097
|
-
object for that type
|
1098
|
-
</p>
|
1099
|
-
<p><a class="source-toggle" href="#"
|
1100
|
-
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
1101
|
-
<div class="method-source-code" id="M000104-source">
|
1102
|
-
<pre>
|
1103
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span>
|
1104
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>)
|
1105
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>)
|
1106
|
-
<span class="ruby-keyword kw">end</span>
|
1107
|
-
</pre>
|
1108
|
-
</div>
|
1109
|
-
</div>
|
1110
|
-
</div>
|
1111
|
-
|
1112
|
-
<div id="method-M000126" class="method-detail">
|
1113
|
-
<a name="M000126"></a>
|
1114
|
-
|
1115
|
-
<div class="method-heading">
|
1116
|
-
<a href="#M000126" class="method-signature">
|
1117
|
-
<span class="method-name">pull</span><span class="method-args">(remote = 'origin', branch = 'master', message = 'origin pull')</span>
|
1118
|
-
</a>
|
1119
|
-
</div>
|
1120
|
-
|
1121
|
-
<div class="method-description">
|
1122
|
-
<p>
|
1123
|
-
fetches a branch from a remote and merges it into the current working
|
1124
|
-
branch
|
1125
|
-
</p>
|
1126
|
-
<p><a class="source-toggle" href="#"
|
1127
|
-
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
1128
|
-
<div class="method-source-code" id="M000126-source">
|
1129
|
-
<pre>
|
1130
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 295</span>
|
1131
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'origin pull'</span>)
|
1132
|
-
<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>)
|
1133
|
-
<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>)
|
1134
|
-
<span class="ruby-keyword kw">end</span>
|
1135
|
-
</pre>
|
1136
|
-
</div>
|
1137
|
-
</div>
|
1138
|
-
</div>
|
1139
|
-
|
1140
|
-
<div id="method-M000124" class="method-detail">
|
1141
|
-
<a name="M000124"></a>
|
1142
|
-
|
1143
|
-
<div class="method-heading">
|
1144
|
-
<a href="#M000124" class="method-signature">
|
1145
|
-
<span class="method-name">push</span><span class="method-args">(remote = 'origin', branch = 'master')</span>
|
1146
|
-
</a>
|
1147
|
-
</div>
|
1148
|
-
|
1149
|
-
<div class="method-description">
|
1150
|
-
<p>
|
1151
|
-
pushes changes to a remote repository - easiest if this is a cloned
|
1152
|
-
repository, otherwise you may have to run something like this first to
|
1153
|
-
setup the push parameters:
|
1154
|
-
</p>
|
1155
|
-
<pre>
|
1156
|
-
@git.config('remote.remote-name.push', 'refs/heads/master:refs/heads/master')
|
1157
|
-
</pre>
|
1158
|
-
<p><a class="source-toggle" href="#"
|
1159
|
-
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
1160
|
-
<div class="method-source-code" id="M000124-source">
|
1161
|
-
<pre>
|
1162
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 283</span>
|
1163
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>)
|
1164
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">remote</span>, <span class="ruby-identifier">branch</span>)
|
1165
|
-
<span class="ruby-keyword kw">end</span>
|
1166
|
-
</pre>
|
1167
|
-
</div>
|
1168
|
-
</div>
|
1169
|
-
</div>
|
1170
|
-
|
1171
|
-
<div id="method-M000137" class="method-detail">
|
1172
|
-
<a name="M000137"></a>
|
1173
|
-
|
1174
|
-
<div class="method-heading">
|
1175
|
-
<a href="#M000137" class="method-signature">
|
1176
|
-
<span class="method-name">read_tree</span><span class="method-args">(treeish, opts = {})</span>
|
1177
|
-
</a>
|
1178
|
-
</div>
|
1179
|
-
|
1180
|
-
<div class="method-description">
|
1181
|
-
<p><a class="source-toggle" href="#"
|
1182
|
-
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
1183
|
-
<div class="method-source-code" id="M000137-source">
|
1184
|
-
<pre>
|
1185
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 368</span>
|
1186
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_tree</span>(<span class="ruby-identifier">treeish</span>, <span class="ruby-identifier">opts</span> = {})
|
1187
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">read_tree</span>(<span class="ruby-identifier">treeish</span>, <span class="ruby-identifier">opts</span>)
|
1188
|
-
<span class="ruby-keyword kw">end</span>
|
1189
|
-
</pre>
|
1190
|
-
</div>
|
1191
|
-
</div>
|
1192
|
-
</div>
|
1193
|
-
|
1194
|
-
<div id="method-M000112" class="method-detail">
|
1195
|
-
<a name="M000112"></a>
|
1196
|
-
|
1197
|
-
<div class="method-heading">
|
1198
|
-
<a href="#M000112" class="method-signature">
|
1199
|
-
<span class="method-name">remote</span><span class="method-args">(remote_name = 'origin')</span>
|
1200
|
-
</a>
|
1201
|
-
</div>
|
1202
|
-
|
1203
|
-
<div class="method-description">
|
1204
|
-
<p>
|
1205
|
-
returns a <a href="Remote.html">Git::Remote</a> object
|
1206
|
-
</p>
|
1207
|
-
<p><a class="source-toggle" href="#"
|
1208
|
-
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
1209
|
-
<div class="method-source-code" id="M000112-source">
|
1210
|
-
<pre>
|
1211
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 194</span>
|
1212
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote</span>(<span class="ruby-identifier">remote_name</span> = <span class="ruby-value str">'origin'</span>)
|
1213
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">remote_name</span>)
|
1214
|
-
<span class="ruby-keyword kw">end</span>
|
1215
|
-
</pre>
|
1216
|
-
</div>
|
1217
|
-
</div>
|
1218
|
-
</div>
|
1219
|
-
|
1220
|
-
<div id="method-M000127" class="method-detail">
|
1221
|
-
<a name="M000127"></a>
|
1222
|
-
|
1223
|
-
<div class="method-heading">
|
1224
|
-
<a href="#M000127" class="method-signature">
|
1225
|
-
<span class="method-name">remotes</span><span class="method-args">()</span>
|
1226
|
-
</a>
|
1227
|
-
</div>
|
1228
|
-
|
1229
|
-
<div class="method-description">
|
1230
|
-
<p>
|
1231
|
-
returns an array of <a href="../Git.html">Git</a>:<a
|
1232
|
-
href="Remote.html">Remote</a> objects
|
1233
|
-
</p>
|
1234
|
-
<p><a class="source-toggle" href="#"
|
1235
|
-
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
1236
|
-
<div class="method-source-code" id="M000127-source">
|
1237
|
-
<pre>
|
1238
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 301</span>
|
1239
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remotes</span>
|
1240
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remotes</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">r</span>) }
|
1241
|
-
<span class="ruby-keyword kw">end</span>
|
1242
|
-
</pre>
|
1243
|
-
</div>
|
1244
|
-
</div>
|
1245
|
-
</div>
|
1246
|
-
|
1247
|
-
<div id="method-M000117" class="method-detail">
|
1248
|
-
<a name="M000117"></a>
|
1249
|
-
|
1250
|
-
<div class="method-heading">
|
1251
|
-
<a href="#M000117" class="method-signature">
|
1252
|
-
<span class="method-name">remove</span><span class="method-args">(path = '.', opts = {})</span>
|
1253
|
-
</a>
|
1254
|
-
</div>
|
1255
|
-
|
1256
|
-
<div class="method-description">
|
1257
|
-
<p>
|
1258
|
-
removes file(s) from the git repository
|
1259
|
-
</p>
|
1260
|
-
<p><a class="source-toggle" href="#"
|
1261
|
-
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
1262
|
-
<div class="method-source-code" id="M000117-source">
|
1263
|
-
<pre>
|
1264
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 239</span>
|
1265
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>, <span class="ruby-identifier">opts</span> = {})
|
1266
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">opts</span>)
|
1267
|
-
<span class="ruby-keyword kw">end</span>
|
1268
|
-
</pre>
|
1269
|
-
</div>
|
1270
|
-
</div>
|
1271
|
-
</div>
|
1272
|
-
|
1273
|
-
<div id="method-M000133" class="method-detail">
|
1274
|
-
<a name="M000133"></a>
|
1275
|
-
|
1276
|
-
<div class="method-heading">
|
1277
|
-
<a href="#M000133" class="method-signature">
|
1278
|
-
<span class="method-name">repack</span><span class="method-args">()</span>
|
1279
|
-
</a>
|
1280
|
-
</div>
|
1281
|
-
|
1282
|
-
<div class="method-description">
|
1283
|
-
<p>
|
1284
|
-
repacks the repository
|
1285
|
-
</p>
|
1286
|
-
<p><a class="source-toggle" href="#"
|
1287
|
-
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
1288
|
-
<div class="method-source-code" id="M000133-source">
|
1289
|
-
<pre>
|
1290
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 342</span>
|
1291
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repack</span>
|
1292
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">repack</span>
|
1293
|
-
<span class="ruby-keyword kw">end</span>
|
1294
|
-
</pre>
|
1295
|
-
</div>
|
1296
|
-
</div>
|
1297
|
-
</div>
|
1298
|
-
|
1299
|
-
<div id="method-M000097" class="method-detail">
|
1300
|
-
<a name="M000097"></a>
|
1301
|
-
|
1302
|
-
<div class="method-heading">
|
1303
|
-
<a href="#M000097" class="method-signature">
|
1304
|
-
<span class="method-name">repo</span><span class="method-args">()</span>
|
1305
|
-
</a>
|
1306
|
-
</div>
|
1307
|
-
|
1308
|
-
<div class="method-description">
|
1309
|
-
<p>
|
1310
|
-
returns reference to the git repository directory
|
1311
|
-
</p>
|
1312
|
-
<pre>
|
1313
|
-
@git.dir.path
|
1314
|
-
</pre>
|
1315
|
-
<p><a class="source-toggle" href="#"
|
1316
|
-
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
1317
|
-
<div class="method-source-code" id="M000097-source">
|
1318
|
-
<pre>
|
1319
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 86</span>
|
1320
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span>
|
1321
|
-
<span class="ruby-ivar">@repository</span>
|
1322
|
-
<span class="ruby-keyword kw">end</span>
|
1323
|
-
</pre>
|
1324
|
-
</div>
|
1325
|
-
</div>
|
1326
|
-
</div>
|
1327
|
-
|
1328
|
-
<div id="method-M000102" class="method-detail">
|
1329
|
-
<a name="M000102"></a>
|
1330
|
-
|
1331
|
-
<div class="method-heading">
|
1332
|
-
<a href="#M000102" class="method-signature">
|
1333
|
-
<span class="method-name">repo_size</span><span class="method-args">()</span>
|
1334
|
-
</a>
|
1335
|
-
</div>
|
1336
|
-
|
1337
|
-
<div class="method-description">
|
1338
|
-
<p>
|
1339
|
-
returns the repository size in bytes
|
1340
|
-
</p>
|
1341
|
-
<p><a class="source-toggle" href="#"
|
1342
|
-
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
1343
|
-
<div class="method-source-code" id="M000102-source">
|
1344
|
-
<pre>
|
1345
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 122</span>
|
1346
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span>
|
1347
|
-
<span class="ruby-identifier">size</span> = <span class="ruby-value">0</span>
|
1348
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">do</span>
|
1349
|
-
(<span class="ruby-identifier">size</span>, <span class="ruby-identifier">dot</span>) = <span class="ruby-value">`du -d0`</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">split</span>
|
1350
|
-
<span class="ruby-keyword kw">end</span>
|
1351
|
-
<span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_i</span>
|
1352
|
-
<span class="ruby-keyword kw">end</span>
|
1353
|
-
</pre>
|
1354
|
-
</div>
|
1355
|
-
</div>
|
1356
|
-
</div>
|
1357
|
-
|
1358
|
-
<div id="method-M000118" class="method-detail">
|
1359
|
-
<a name="M000118"></a>
|
1360
|
-
|
1361
|
-
<div class="method-heading">
|
1362
|
-
<a href="#M000118" class="method-signature">
|
1363
|
-
<span class="method-name">reset</span><span class="method-args">(commitish = nil, opts = {})</span>
|
1364
|
-
</a>
|
1365
|
-
</div>
|
1366
|
-
|
1367
|
-
<div class="method-description">
|
1368
|
-
<p>
|
1369
|
-
resets the working directory to the provided commitish
|
1370
|
-
</p>
|
1371
|
-
<p><a class="source-toggle" href="#"
|
1372
|
-
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
1373
|
-
<div class="method-source-code" id="M000118-source">
|
1374
|
-
<pre>
|
1375
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 244</span>
|
1376
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
1377
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span>, <span class="ruby-identifier">opts</span>)
|
1378
|
-
<span class="ruby-keyword kw">end</span>
|
1379
|
-
</pre>
|
1380
|
-
</div>
|
1381
|
-
</div>
|
1382
|
-
</div>
|
1383
|
-
|
1384
|
-
<div id="method-M000119" class="method-detail">
|
1385
|
-
<a name="M000119"></a>
|
1386
|
-
|
1387
|
-
<div class="method-heading">
|
1388
|
-
<a href="#M000119" class="method-signature">
|
1389
|
-
<span class="method-name">reset_hard</span><span class="method-args">(commitish = nil, opts = {})</span>
|
1390
|
-
</a>
|
1391
|
-
</div>
|
1392
|
-
|
1393
|
-
<div class="method-description">
|
1394
|
-
<p>
|
1395
|
-
resets the working directory to the commitish with
|
1396
|
-
’—hard’
|
1397
|
-
</p>
|
1398
|
-
<p><a class="source-toggle" href="#"
|
1399
|
-
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
1400
|
-
<div class="method-source-code" id="M000119-source">
|
1401
|
-
<pre>
|
1402
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 249</span>
|
1403
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset_hard</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
1404
|
-
<span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:hard</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>)
|
1405
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span>, <span class="ruby-identifier">opts</span>)
|
1406
|
-
<span class="ruby-keyword kw">end</span>
|
1407
|
-
</pre>
|
1408
|
-
</div>
|
1409
|
-
</div>
|
1410
|
-
</div>
|
1411
|
-
|
1412
|
-
<div id="method-M000145" class="method-detail">
|
1413
|
-
<a name="M000145"></a>
|
1414
|
-
|
1415
|
-
<div class="method-heading">
|
1416
|
-
<a href="#M000145" class="method-signature">
|
1417
|
-
<span class="method-name">revparse</span><span class="method-args">(objectish)</span>
|
1418
|
-
</a>
|
1419
|
-
</div>
|
1420
|
-
|
1421
|
-
<div class="method-description">
|
1422
|
-
<p>
|
1423
|
-
runs git rev-parse to convert the objectish to a full sha
|
1424
|
-
</p>
|
1425
|
-
<pre>
|
1426
|
-
@git.revparse("HEAD^^")
|
1427
|
-
@git.revparse('v2.4^{tree}')
|
1428
|
-
@git.revparse('v2.4:/doc/index.html')
|
1429
|
-
</pre>
|
1430
|
-
<p><a class="source-toggle" href="#"
|
1431
|
-
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
1432
|
-
<div class="method-source-code" id="M000145-source">
|
1433
|
-
<pre>
|
1434
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 420</span>
|
1435
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>)
|
1436
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>)
|
1437
|
-
<span class="ruby-keyword kw">end</span>
|
1438
|
-
</pre>
|
1439
|
-
</div>
|
1440
|
-
</div>
|
1441
|
-
</div>
|
1442
|
-
|
1443
|
-
<div id="method-M000100" class="method-detail">
|
1444
|
-
<a name="M000100"></a>
|
1445
|
-
|
1446
|
-
<div class="method-heading">
|
1447
|
-
<a href="#M000100" class="method-signature">
|
1448
|
-
<span class="method-name">set_index</span><span class="method-args">(index_file, check = true)</span>
|
1449
|
-
</a>
|
1450
|
-
</div>
|
1451
|
-
|
1452
|
-
<div class="method-description">
|
1453
|
-
<p><a class="source-toggle" href="#"
|
1454
|
-
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
1455
|
-
<div class="method-source-code" id="M000100-source">
|
1456
|
-
<pre>
|
1457
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 101</span>
|
1458
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_index</span>(<span class="ruby-identifier">index_file</span>, <span class="ruby-identifier">check</span> = <span class="ruby-keyword kw">true</span>)
|
1459
|
-
<span class="ruby-ivar">@lib</span> = <span class="ruby-keyword kw">nil</span>
|
1460
|
-
<span class="ruby-ivar">@index</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Index</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">index_file</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">check</span>)
|
1461
|
-
<span class="ruby-keyword kw">end</span>
|
1462
|
-
</pre>
|
1463
|
-
</div>
|
1464
|
-
</div>
|
1465
|
-
</div>
|
1466
|
-
|
1467
|
-
<div id="method-M000099" class="method-detail">
|
1468
|
-
<a name="M000099"></a>
|
1469
|
-
|
1470
|
-
<div class="method-heading">
|
1471
|
-
<a href="#M000099" class="method-signature">
|
1472
|
-
<span class="method-name">set_working</span><span class="method-args">(work_dir, check = true)</span>
|
1473
|
-
</a>
|
1474
|
-
</div>
|
1475
|
-
|
1476
|
-
<div class="method-description">
|
1477
|
-
<p><a class="source-toggle" href="#"
|
1478
|
-
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
1479
|
-
<div class="method-source-code" id="M000099-source">
|
1480
|
-
<pre>
|
1481
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 96</span>
|
1482
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_working</span>(<span class="ruby-identifier">work_dir</span>, <span class="ruby-identifier">check</span> = <span class="ruby-keyword kw">true</span>)
|
1483
|
-
<span class="ruby-ivar">@lib</span> = <span class="ruby-keyword kw">nil</span>
|
1484
|
-
<span class="ruby-ivar">@working_directory</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkingDirectory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">work_dir</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">check</span>)
|
1485
|
-
<span class="ruby-keyword kw">end</span>
|
1486
|
-
</pre>
|
1487
|
-
</div>
|
1488
|
-
</div>
|
1489
|
-
</div>
|
1490
|
-
|
1491
|
-
<div id="method-M000109" class="method-detail">
|
1492
|
-
<a name="M000109"></a>
|
1493
|
-
|
1494
|
-
<div class="method-heading">
|
1495
|
-
<a href="#M000109" class="method-signature">
|
1496
|
-
<span class="method-name">status</span><span class="method-args">()</span>
|
1497
|
-
</a>
|
1498
|
-
</div>
|
1499
|
-
|
1500
|
-
<div class="method-description">
|
1501
|
-
<p>
|
1502
|
-
returns a <a href="Status.html">Git::Status</a> object
|
1503
|
-
</p>
|
1504
|
-
<p><a class="source-toggle" href="#"
|
1505
|
-
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
1506
|
-
<div class="method-source-code" id="M000109-source">
|
1507
|
-
<pre>
|
1508
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span>
|
1509
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
1510
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Status</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
1511
|
-
<span class="ruby-keyword kw">end</span>
|
1512
|
-
</pre>
|
1513
|
-
</div>
|
1514
|
-
</div>
|
1515
|
-
</div>
|
1516
|
-
|
1517
|
-
<div id="method-M000130" class="method-detail">
|
1518
|
-
<a name="M000130"></a>
|
1519
|
-
|
1520
|
-
<div class="method-heading">
|
1521
|
-
<a href="#M000130" class="method-signature">
|
1522
|
-
<span class="method-name">tag</span><span class="method-args">(tag_name)</span>
|
1523
|
-
</a>
|
1524
|
-
</div>
|
1525
|
-
|
1526
|
-
<div class="method-description">
|
1527
|
-
<p>
|
1528
|
-
returns a Git::Tag object
|
1529
|
-
</p>
|
1530
|
-
<p><a class="source-toggle" href="#"
|
1531
|
-
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
1532
|
-
<div class="method-source-code" id="M000130-source">
|
1533
|
-
<pre>
|
1534
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 326</span>
|
1535
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>)
|
1536
|
-
<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">tag_name</span>, <span class="ruby-value str">'tag'</span>, <span class="ruby-keyword kw">true</span>)
|
1537
|
-
<span class="ruby-keyword kw">end</span>
|
1538
|
-
</pre>
|
1539
|
-
</div>
|
1540
|
-
</div>
|
1541
|
-
</div>
|
1542
|
-
|
1543
|
-
<div id="method-M000129" class="method-detail">
|
1544
|
-
<a name="M000129"></a>
|
1545
|
-
|
1546
|
-
<div class="method-heading">
|
1547
|
-
<a href="#M000129" class="method-signature">
|
1548
|
-
<span class="method-name">tags</span><span class="method-args">()</span>
|
1549
|
-
</a>
|
1550
|
-
</div>
|
1551
|
-
|
1552
|
-
<div class="method-description">
|
1553
|
-
<p>
|
1554
|
-
returns an array of all Git::Tag objects for this repository
|
1555
|
-
</p>
|
1556
|
-
<p><a class="source-toggle" href="#"
|
1557
|
-
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
1558
|
-
<div class="method-source-code" id="M000129-source">
|
1559
|
-
<pre>
|
1560
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 321</span>
|
1561
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span>
|
1562
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">tags</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">r</span>) }
|
1563
|
-
<span class="ruby-keyword kw">end</span>
|
1564
|
-
</pre>
|
1565
|
-
</div>
|
1566
|
-
</div>
|
1567
|
-
</div>
|
1568
|
-
|
1569
|
-
<div id="method-M000141" class="method-detail">
|
1570
|
-
<a name="M000141"></a>
|
1571
|
-
|
1572
|
-
<div class="method-heading">
|
1573
|
-
<a href="#M000141" class="method-signature">
|
1574
|
-
<span class="method-name">update_ref</span><span class="method-args">(branch, commit)</span>
|
1575
|
-
</a>
|
1576
|
-
</div>
|
1577
|
-
|
1578
|
-
<div class="method-description">
|
1579
|
-
<p><a class="source-toggle" href="#"
|
1580
|
-
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
1581
|
-
<div class="method-source-code" id="M000141-source">
|
1582
|
-
<pre>
|
1583
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 385</span>
|
1584
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_ref</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">commit</span>)
|
1585
|
-
<span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch</span>).<span class="ruby-identifier">update_ref</span>(<span class="ruby-identifier">commit</span>)
|
1586
|
-
<span class="ruby-keyword kw">end</span>
|
1587
|
-
</pre>
|
1588
|
-
</div>
|
1589
|
-
</div>
|
1590
|
-
</div>
|
1591
|
-
|
1592
|
-
<div id="method-M000134" class="method-detail">
|
1593
|
-
<a name="M000134"></a>
|
1594
|
-
|
1595
|
-
<div class="method-heading">
|
1596
|
-
<a href="#M000134" class="method-signature">
|
1597
|
-
<span class="method-name">with_index</span><span class="method-args">(new_index) {|@index| ...}</span>
|
1598
|
-
</a>
|
1599
|
-
</div>
|
1600
|
-
|
1601
|
-
<div class="method-description">
|
1602
|
-
<p>
|
1603
|
-
LOWER LEVEL INDEX OPERATIONS ##
|
1604
|
-
</p>
|
1605
|
-
<p><a class="source-toggle" href="#"
|
1606
|
-
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
1607
|
-
<div class="method-source-code" id="M000134-source">
|
1608
|
-
<pre>
|
1609
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 349</span>
|
1610
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_index</span>(<span class="ruby-identifier">new_index</span>)
|
1611
|
-
<span class="ruby-identifier">old_index</span> = <span class="ruby-ivar">@index</span>
|
1612
|
-
<span class="ruby-identifier">set_index</span>(<span class="ruby-identifier">new_index</span>, <span class="ruby-keyword kw">false</span>)
|
1613
|
-
<span class="ruby-identifier">return_value</span> = <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@index</span>
|
1614
|
-
<span class="ruby-identifier">set_index</span>(<span class="ruby-identifier">old_index</span>)
|
1615
|
-
<span class="ruby-identifier">return_value</span>
|
1616
|
-
<span class="ruby-keyword kw">end</span>
|
1617
|
-
</pre>
|
1618
|
-
</div>
|
1619
|
-
</div>
|
1620
|
-
</div>
|
1621
|
-
|
1622
|
-
<div id="method-M000135" class="method-detail">
|
1623
|
-
<a name="M000135"></a>
|
1624
|
-
|
1625
|
-
<div class="method-heading">
|
1626
|
-
<a href="#M000135" class="method-signature">
|
1627
|
-
<span class="method-name">with_temp_index</span><span class="method-args">(&blk)</span>
|
1628
|
-
</a>
|
1629
|
-
</div>
|
1630
|
-
|
1631
|
-
<div class="method-description">
|
1632
|
-
<p><a class="source-toggle" href="#"
|
1633
|
-
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
1634
|
-
<div class="method-source-code" id="M000135-source">
|
1635
|
-
<pre>
|
1636
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 357</span>
|
1637
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_temp_index</span> <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
1638
|
-
<span class="ruby-identifier">tempfile</span> = <span class="ruby-constant">Tempfile</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'temp-index'</span>)
|
1639
|
-
<span class="ruby-identifier">temp_path</span> = <span class="ruby-identifier">tempfile</span>.<span class="ruby-identifier">path</span>
|
1640
|
-
<span class="ruby-identifier">tempfile</span>.<span class="ruby-identifier">unlink</span>
|
1641
|
-
<span class="ruby-identifier">with_index</span>(<span class="ruby-identifier">temp_path</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
1642
|
-
<span class="ruby-keyword kw">end</span>
|
1643
|
-
</pre>
|
1644
|
-
</div>
|
1645
|
-
</div>
|
1646
|
-
</div>
|
1647
|
-
|
1648
|
-
<div id="method-M000144" class="method-detail">
|
1649
|
-
<a name="M000144"></a>
|
1650
|
-
|
1651
|
-
<div class="method-heading">
|
1652
|
-
<a href="#M000144" class="method-signature">
|
1653
|
-
<span class="method-name">with_temp_working</span><span class="method-args">(&blk)</span>
|
1654
|
-
</a>
|
1655
|
-
</div>
|
1656
|
-
|
1657
|
-
<div class="method-description">
|
1658
|
-
<p><a class="source-toggle" href="#"
|
1659
|
-
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
1660
|
-
<div class="method-source-code" id="M000144-source">
|
1661
|
-
<pre>
|
1662
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 405</span>
|
1663
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_temp_working</span> <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
1664
|
-
<span class="ruby-identifier">tempfile</span> = <span class="ruby-constant">Tempfile</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"temp-workdir"</span>)
|
1665
|
-
<span class="ruby-identifier">temp_dir</span> = <span class="ruby-identifier">tempfile</span>.<span class="ruby-identifier">path</span>
|
1666
|
-
<span class="ruby-identifier">tempfile</span>.<span class="ruby-identifier">unlink</span>
|
1667
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">temp_dir</span>, <span class="ruby-value">0700</span>)
|
1668
|
-
<span class="ruby-identifier">with_working</span>(<span class="ruby-identifier">temp_dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
1669
|
-
<span class="ruby-keyword kw">end</span>
|
1670
|
-
</pre>
|
1671
|
-
</div>
|
1672
|
-
</div>
|
1673
|
-
</div>
|
1674
|
-
|
1675
|
-
<div id="method-M000143" class="method-detail">
|
1676
|
-
<a name="M000143"></a>
|
1677
|
-
|
1678
|
-
<div class="method-heading">
|
1679
|
-
<a href="#M000143" class="method-signature">
|
1680
|
-
<span class="method-name">with_working</span><span class="method-args">(work_dir) {|@working_directory| ...}</span>
|
1681
|
-
</a>
|
1682
|
-
</div>
|
1683
|
-
|
1684
|
-
<div class="method-description">
|
1685
|
-
<p><a class="source-toggle" href="#"
|
1686
|
-
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
1687
|
-
<div class="method-source-code" id="M000143-source">
|
1688
|
-
<pre>
|
1689
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 394</span>
|
1690
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_working</span>(<span class="ruby-identifier">work_dir</span>)
|
1691
|
-
<span class="ruby-identifier">return_value</span> = <span class="ruby-keyword kw">false</span>
|
1692
|
-
<span class="ruby-identifier">old_working</span> = <span class="ruby-ivar">@working_directory</span>
|
1693
|
-
<span class="ruby-identifier">set_working</span>(<span class="ruby-identifier">work_dir</span>)
|
1694
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-identifier">work_dir</span> <span class="ruby-keyword kw">do</span>
|
1695
|
-
<span class="ruby-identifier">return_value</span> = <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@working_directory</span>
|
1696
|
-
<span class="ruby-keyword kw">end</span>
|
1697
|
-
<span class="ruby-identifier">set_working</span>(<span class="ruby-identifier">old_working</span>)
|
1698
|
-
<span class="ruby-identifier">return_value</span>
|
1699
|
-
<span class="ruby-keyword kw">end</span>
|
1700
|
-
</pre>
|
1701
|
-
</div>
|
1702
|
-
</div>
|
1703
|
-
</div>
|
1704
|
-
|
1705
|
-
<div id="method-M000140" class="method-detail">
|
1706
|
-
<a name="M000140"></a>
|
1707
|
-
|
1708
|
-
<div class="method-heading">
|
1709
|
-
<a href="#M000140" class="method-signature">
|
1710
|
-
<span class="method-name">write_and_commit_tree</span><span class="method-args">(opts = {})</span>
|
1711
|
-
</a>
|
1712
|
-
</div>
|
1713
|
-
|
1714
|
-
<div class="method-description">
|
1715
|
-
<p><a class="source-toggle" href="#"
|
1716
|
-
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
1717
|
-
<div class="method-source-code" id="M000140-source">
|
1718
|
-
<pre>
|
1719
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 380</span>
|
1720
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_and_commit_tree</span>(<span class="ruby-identifier">opts</span> = {})
|
1721
|
-
<span class="ruby-identifier">tree</span> = <span class="ruby-identifier">write_tree</span>
|
1722
|
-
<span class="ruby-identifier">commit_tree</span>(<span class="ruby-identifier">tree</span>, <span class="ruby-identifier">opts</span>)
|
1723
|
-
<span class="ruby-keyword kw">end</span>
|
1724
|
-
</pre>
|
1725
|
-
</div>
|
1726
|
-
</div>
|
1727
|
-
</div>
|
1728
|
-
|
1729
|
-
<div id="method-M000138" class="method-detail">
|
1730
|
-
<a name="M000138"></a>
|
1731
|
-
|
1732
|
-
<div class="method-heading">
|
1733
|
-
<a href="#M000138" class="method-signature">
|
1734
|
-
<span class="method-name">write_tree</span><span class="method-args">()</span>
|
1735
|
-
</a>
|
1736
|
-
</div>
|
1737
|
-
|
1738
|
-
<div class="method-description">
|
1739
|
-
<p><a class="source-toggle" href="#"
|
1740
|
-
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
1741
|
-
<div class="method-source-code" id="M000138-source">
|
1742
|
-
<pre>
|
1743
|
-
<span class="ruby-comment cmt"># File lib/git/base.rb, line 372</span>
|
1744
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_tree</span>
|
1745
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">write_tree</span>
|
1746
|
-
<span class="ruby-keyword kw">end</span>
|
1747
|
-
</pre>
|
1748
|
-
</div>
|
1749
|
-
</div>
|
1750
|
-
</div>
|
1751
|
-
|
1752
|
-
|
1753
|
-
</div>
|
1754
|
-
|
1755
|
-
|
1756
|
-
</div>
|
1757
|
-
|
1758
|
-
|
1759
|
-
<div id="validator-badges">
|
1760
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
1761
|
-
</div>
|
1762
|
-
|
1763
|
-
</body>
|
1764
|
-
</html>
|