githug 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/levels/bisect/.githug/COMMIT_EDITMSG +1 -0
- data/levels/bisect/.githug/ORIG_HEAD +1 -1
- data/levels/bisect/.githug/config +2 -0
- data/levels/bisect/.githug/gitk.cache +3 -0
- data/levels/bisect/.githug/index +0 -0
- data/levels/bisect/.githug/info/refs +5 -1
- data/levels/bisect/.githug/logs/HEAD +21 -25
- data/levels/bisect/.githug/logs/refs/heads/master +21 -19
- data/levels/bisect/.githug/objects/info/packs +1 -1
- data/levels/bisect/.githug/objects/pack/pack-59fab357f3158a9640633de6a3326ed79a2b4fe6.idx +0 -0
- data/levels/bisect/.githug/objects/pack/pack-59fab357f3158a9640633de6a3326ed79a2b4fe6.pack +0 -0
- data/levels/bisect/.githug/packed-refs +5 -1
- data/levels/checkout_file.rb +1 -1
- data/levels/{commit_ammend.rb → commit_amend.rb} +0 -0
- data/levels/push.rb +64 -0
- data/levels/rm_cached.rb +1 -1
- data/levels/stage_lines.rb +1 -1
- data/lib/githug/level.rb +2 -2
- data/lib/githug/repository.rb +3 -2
- data/lib/githug/version.rb +1 -1
- data/spec/githug/repository_spec.rb +1 -1
- metadata +8 -5
- data/levels/bisect/.githug/objects/pack/pack-34f18db272b06cca4ff6cbbdbc96d496f6b28995.idx +0 -0
- data/levels/bisect/.githug/objects/pack/pack-34f18db272b06cca4ff6cbbdbc96d496f6b28995.pack +0 -0
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ To install Githug
|
|
|
9
9
|
|
|
10
10
|
gem install githug
|
|
11
11
|
|
|
12
|
-
After the gem is installed, you can run `githug` where you will be prompted to create a directory. Githug should work on Linux
|
|
12
|
+
After the gem is installed, you can run `githug` where you will be prompted to create a directory. Githug should work on Linux, OS X and Windows.
|
|
13
13
|
|
|
14
14
|
## Commands
|
|
15
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Another Commit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f351ca63a759f56bb26924fd566294eb23455c71
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
1 1
|
|
2
|
+
f351ca63a759f56bb26924fd566294eb23455c71 f608824888b83bbedc1f658be7496ffea467a8fb {7f8406e742c5281ec2c9bc3c6cc69dc6ba5311fd 36da01fb0571360b0e1170f0cb46e74f72927cda c1b80f5ed4995cda8e19027f0776351af6b76703 4145057e11ab90109c95882b1f40d560da408bfa 94e162b505bc2290fb67764357a625192f8a4e8a bfb16eec1081387b586dc8009ef422cfff60b622 c0a1cdff8dd63948a5fc41f5871681c5b133c053 e8dd08d5aabb62b56c80320672cd8d42e2b8954d 89d27c5f4680cd21028947be75c33a68511decb9 98d617d3bdf0b6c59d6177233acb4b9fd54b7aac 0b194f30d6867522d1666590087e6c0b5e20dc93 d406b1b8bc269c9aef9127299e83947220e7a9b0 f608824888b83bbedc1f658be7496ffea467a8fb}
|
|
3
|
+
1
|
data/levels/bisect/.githug/index
CHANGED
|
Binary file
|
|
@@ -2,4 +2,8 @@
|
|
|
2
2
|
bfb16eec1081387b586dc8009ef422cfff60b622 refs/bisect/good-bfb16eec1081387b586dc8009ef422cfff60b622
|
|
3
3
|
c0a1cdff8dd63948a5fc41f5871681c5b133c053 refs/bisect/good-c0a1cdff8dd63948a5fc41f5871681c5b133c053
|
|
4
4
|
f608824888b83bbedc1f658be7496ffea467a8fb refs/bisect/good-f608824888b83bbedc1f658be7496ffea467a8fb
|
|
5
|
-
|
|
5
|
+
12628f463f4c722695bf0e9d603c9411287885db refs/heads/master
|
|
6
|
+
32ae79196bd49a3416264970b0cd873e26bd1824 refs/tags/graetsch
|
|
7
|
+
89d27c5f4680cd21028947be75c33a68511decb9 refs/tags/graetsch^{}
|
|
8
|
+
2a5197909a0a1575145e0a40bb13dd54f5d6a9f7 refs/tags/orig_head
|
|
9
|
+
f351ca63a759f56bb26924fd566294eb23455c71 refs/tags/orig_head^{}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
c0a1cdff8dd63948a5fc41f5871681c5b133c053 4145057e11ab90109c95882b1f40d560da408bfa Robert Bittle <guywithnose@gmail.com> 1335178506 -0400 checkout: moving from c0a1cdff8dd63948a5fc41f5871681c5b133c053 to 4145057e11ab90109c95882b1f40d560da408bfa
|
|
23
|
-
4145057e11ab90109c95882b1f40d560da408bfa 94e162b505bc2290fb67764357a625192f8a4e8a Robert Bittle <guywithnose@gmail.com> 1335178506 -0400 checkout: moving from 4145057e11ab90109c95882b1f40d560da408bfa to 94e162b505bc2290fb67764357a625192f8a4e8a
|
|
24
|
-
94e162b505bc2290fb67764357a625192f8a4e8a bfb16eec1081387b586dc8009ef422cfff60b622 Robert Bittle <guywithnose@gmail.com> 1335178506 -0400 checkout: moving from 94e162b505bc2290fb67764357a625192f8a4e8a to bfb16eec1081387b586dc8009ef422cfff60b622
|
|
25
|
-
bfb16eec1081387b586dc8009ef422cfff60b622 f351ca63a759f56bb26924fd566294eb23455c71 Robert Bittle <guywithnose@gmail.com> 1335182458 -0400 reset: moving to master
|
|
1
|
+
f351ca63a759f56bb26924fd566294eb23455c71 f608824888b83bbedc1f658be7496ffea467a8fb Florian Sesser <fs@it-agenten.com> 1348697815 +0200 reset: moving to f608824888b83bbedc1f658be7496ffea467a8fb
|
|
2
|
+
f608824888b83bbedc1f658be7496ffea467a8fb f608824888b83bbedc1f658be7496ffea467a8fb Florian Sesser <fs@it-agenten.com> 1348697842 +0200 checkout: moving from master to hacklschorsch
|
|
3
|
+
f608824888b83bbedc1f658be7496ffea467a8fb 80a9b3d94237f982b6c9052e6d56b930f18a4ef5 Florian Sesser <fs@it-agenten.com> 1348697952 +0200 cherry-pick: Another Commit
|
|
4
|
+
80a9b3d94237f982b6c9052e6d56b930f18a4ef5 8c992afff5e16c97f4ef82d58671a3403d734086 Florian Sesser <fs@it-agenten.com> 1348697967 +0200 cherry-pick: Another Commit
|
|
5
|
+
8c992afff5e16c97f4ef82d58671a3403d734086 49774ea84ae3723cc4fac75521435cc04d56b657 Florian Sesser <fs@it-agenten.com> 1348698291 +0200 cherry-pick: Another Commit
|
|
6
|
+
49774ea84ae3723cc4fac75521435cc04d56b657 e060c0d789288fda946f91254672295230b2de9d Florian Sesser <fs@it-agenten.com> 1348698316 +0200 cherry-pick: Another Commit
|
|
7
|
+
e060c0d789288fda946f91254672295230b2de9d ffb097e3edfa828afa565eeceee6b506b3f2a131 Florian Sesser <fs@it-agenten.com> 1348698720 +0200 commit: Another Commit
|
|
8
|
+
ffb097e3edfa828afa565eeceee6b506b3f2a131 2e1735d5bef6db0f3e325051a179af280f05573a Florian Sesser <fs@it-agenten.com> 1348698824 +0200 commit: Another Commit
|
|
9
|
+
2e1735d5bef6db0f3e325051a179af280f05573a ccddb96f824a0e929f5fecf55c0f4479552246f3 Florian Sesser <fs@it-agenten.com> 1348698884 +0200 commit: Another Commit
|
|
10
|
+
ccddb96f824a0e929f5fecf55c0f4479552246f3 a530e7ed25173d0800cfe33cc8915e5929209b8e Florian Sesser <fs@it-agenten.com> 1348698911 +0200 commit: Another Commit
|
|
11
|
+
a530e7ed25173d0800cfe33cc8915e5929209b8e fdbfc0d403e5ac0b2659cbfa2cbb061fcca0dc2a Florian Sesser <fs@it-agenten.com> 1348699468 +0200 commit: Another Commit
|
|
12
|
+
fdbfc0d403e5ac0b2659cbfa2cbb061fcca0dc2a 5d1eb75377072c5c6e5a1b0ac4159181ecc4edff Florian Sesser <fs@it-agenten.com> 1348699592 +0200 commit: Another Commit
|
|
13
|
+
5d1eb75377072c5c6e5a1b0ac4159181ecc4edff 9f54462abbb991b167532929b34118113aa6c52e Florian Sesser <fs@it-agenten.com> 1348699604 +0200 cherry-pick: Another Commit
|
|
14
|
+
9f54462abbb991b167532929b34118113aa6c52e 7c03a99ba384572c216769f0273b5baf3ba83694 Florian Sesser <fs@it-agenten.com> 1348699614 +0200 cherry-pick: Another Commit
|
|
15
|
+
7c03a99ba384572c216769f0273b5baf3ba83694 5db7a7cb90e745e2c9dbdd84810ccc7d91d92e72 Florian Sesser <fs@it-agenten.com> 1348699625 +0200 cherry-pick: Another Commit
|
|
16
|
+
5db7a7cb90e745e2c9dbdd84810ccc7d91d92e72 18ed2ac1522a014412d4303ce7c8db39becab076 Florian Sesser <fs@it-agenten.com> 1348699635 +0200 cherry-pick: Another Commit
|
|
17
|
+
18ed2ac1522a014412d4303ce7c8db39becab076 bb736ddd9b83d6296d23444a2ab3b0d2fa6dfb81 Florian Sesser <fs@it-agenten.com> 1348699648 +0200 cherry-pick: Another Commit
|
|
18
|
+
bb736ddd9b83d6296d23444a2ab3b0d2fa6dfb81 888386c77c957dc52f3113f2483663e3132559d4 Florian Sesser <fs@it-agenten.com> 1348699657 +0200 cherry-pick: Another Commit
|
|
19
|
+
888386c77c957dc52f3113f2483663e3132559d4 028763b396121e035f672ef5af75d2dcb1cc8146 Florian Sesser <fs@it-agenten.com> 1348699668 +0200 cherry-pick: Another Commit
|
|
20
|
+
028763b396121e035f672ef5af75d2dcb1cc8146 979576184c5ec9667cf7593cf550c420378e960f Florian Sesser <fs@it-agenten.com> 1348699679 +0200 cherry-pick: Another Commit
|
|
21
|
+
979576184c5ec9667cf7593cf550c420378e960f 12628f463f4c722695bf0e9d603c9411287885db Florian Sesser <fs@it-agenten.com> 1348699693 +0200 cherry-pick: Another Commit
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 f608824888b83bbedc1f658be7496ffea467a8fb Florian Sesser <fs@it-agenten.com> 1348697842 +0200 branch: Created from HEAD
|
|
2
|
+
f608824888b83bbedc1f658be7496ffea467a8fb 80a9b3d94237f982b6c9052e6d56b930f18a4ef5 Florian Sesser <fs@it-agenten.com> 1348697952 +0200 cherry-pick: Another Commit
|
|
3
|
+
80a9b3d94237f982b6c9052e6d56b930f18a4ef5 8c992afff5e16c97f4ef82d58671a3403d734086 Florian Sesser <fs@it-agenten.com> 1348697967 +0200 cherry-pick: Another Commit
|
|
4
|
+
8c992afff5e16c97f4ef82d58671a3403d734086 49774ea84ae3723cc4fac75521435cc04d56b657 Florian Sesser <fs@it-agenten.com> 1348698291 +0200 cherry-pick: Another Commit
|
|
5
|
+
49774ea84ae3723cc4fac75521435cc04d56b657 e060c0d789288fda946f91254672295230b2de9d Florian Sesser <fs@it-agenten.com> 1348698316 +0200 cherry-pick: Another Commit
|
|
6
|
+
e060c0d789288fda946f91254672295230b2de9d ffb097e3edfa828afa565eeceee6b506b3f2a131 Florian Sesser <fs@it-agenten.com> 1348698720 +0200 commit: Another Commit
|
|
7
|
+
ffb097e3edfa828afa565eeceee6b506b3f2a131 2e1735d5bef6db0f3e325051a179af280f05573a Florian Sesser <fs@it-agenten.com> 1348698824 +0200 commit: Another Commit
|
|
8
|
+
2e1735d5bef6db0f3e325051a179af280f05573a ccddb96f824a0e929f5fecf55c0f4479552246f3 Florian Sesser <fs@it-agenten.com> 1348698884 +0200 commit: Another Commit
|
|
9
|
+
ccddb96f824a0e929f5fecf55c0f4479552246f3 a530e7ed25173d0800cfe33cc8915e5929209b8e Florian Sesser <fs@it-agenten.com> 1348698911 +0200 commit: Another Commit
|
|
10
|
+
a530e7ed25173d0800cfe33cc8915e5929209b8e fdbfc0d403e5ac0b2659cbfa2cbb061fcca0dc2a Florian Sesser <fs@it-agenten.com> 1348699468 +0200 commit: Another Commit
|
|
11
|
+
fdbfc0d403e5ac0b2659cbfa2cbb061fcca0dc2a 5d1eb75377072c5c6e5a1b0ac4159181ecc4edff Florian Sesser <fs@it-agenten.com> 1348699592 +0200 commit: Another Commit
|
|
12
|
+
5d1eb75377072c5c6e5a1b0ac4159181ecc4edff 9f54462abbb991b167532929b34118113aa6c52e Florian Sesser <fs@it-agenten.com> 1348699604 +0200 cherry-pick: Another Commit
|
|
13
|
+
9f54462abbb991b167532929b34118113aa6c52e 7c03a99ba384572c216769f0273b5baf3ba83694 Florian Sesser <fs@it-agenten.com> 1348699614 +0200 cherry-pick: Another Commit
|
|
14
|
+
7c03a99ba384572c216769f0273b5baf3ba83694 5db7a7cb90e745e2c9dbdd84810ccc7d91d92e72 Florian Sesser <fs@it-agenten.com> 1348699625 +0200 cherry-pick: Another Commit
|
|
15
|
+
5db7a7cb90e745e2c9dbdd84810ccc7d91d92e72 18ed2ac1522a014412d4303ce7c8db39becab076 Florian Sesser <fs@it-agenten.com> 1348699635 +0200 cherry-pick: Another Commit
|
|
16
|
+
18ed2ac1522a014412d4303ce7c8db39becab076 bb736ddd9b83d6296d23444a2ab3b0d2fa6dfb81 Florian Sesser <fs@it-agenten.com> 1348699648 +0200 cherry-pick: Another Commit
|
|
17
|
+
bb736ddd9b83d6296d23444a2ab3b0d2fa6dfb81 888386c77c957dc52f3113f2483663e3132559d4 Florian Sesser <fs@it-agenten.com> 1348699657 +0200 cherry-pick: Another Commit
|
|
18
|
+
888386c77c957dc52f3113f2483663e3132559d4 028763b396121e035f672ef5af75d2dcb1cc8146 Florian Sesser <fs@it-agenten.com> 1348699668 +0200 cherry-pick: Another Commit
|
|
19
|
+
028763b396121e035f672ef5af75d2dcb1cc8146 979576184c5ec9667cf7593cf550c420378e960f Florian Sesser <fs@it-agenten.com> 1348699679 +0200 cherry-pick: Another Commit
|
|
20
|
+
979576184c5ec9667cf7593cf550c420378e960f 12628f463f4c722695bf0e9d603c9411287885db Florian Sesser <fs@it-agenten.com> 1348699693 +0200 cherry-pick: Another Commit
|
|
21
|
+
12628f463f4c722695bf0e9d603c9411287885db 12628f463f4c722695bf0e9d603c9411287885db Florian Sesser <fs@it-agenten.com> 1348701064 +0200 Branch: renamed refs/heads/hacklschorsch to refs/heads/master
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
P pack-
|
|
1
|
+
P pack-59fab357f3158a9640633de6a3326ed79a2b4fe6.pack
|
|
2
2
|
|
|
Binary file
|
|
Binary file
|
|
@@ -3,4 +3,8 @@
|
|
|
3
3
|
bfb16eec1081387b586dc8009ef422cfff60b622 refs/bisect/good-bfb16eec1081387b586dc8009ef422cfff60b622
|
|
4
4
|
c0a1cdff8dd63948a5fc41f5871681c5b133c053 refs/bisect/good-c0a1cdff8dd63948a5fc41f5871681c5b133c053
|
|
5
5
|
f608824888b83bbedc1f658be7496ffea467a8fb refs/bisect/good-f608824888b83bbedc1f658be7496ffea467a8fb
|
|
6
|
-
|
|
6
|
+
12628f463f4c722695bf0e9d603c9411287885db refs/heads/master
|
|
7
|
+
32ae79196bd49a3416264970b0cd873e26bd1824 refs/tags/graetsch
|
|
8
|
+
^89d27c5f4680cd21028947be75c33a68511decb9
|
|
9
|
+
2a5197909a0a1575145e0a40bb13dd54f5d6a9f7 refs/tags/orig_head
|
|
10
|
+
^f351ca63a759f56bb26924fd566294eb23455c71
|
data/levels/checkout_file.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
difficulty 3
|
|
2
2
|
|
|
3
|
-
description "A file has been modified, but you don't want to keep the
|
|
3
|
+
description "A file has been modified, but you don't want to keep the modification. Checkout the `config.rb` file from the last commit."
|
|
4
4
|
|
|
5
5
|
setup do
|
|
6
6
|
repo.init
|
|
File without changes
|
data/levels/push.rb
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
difficulty 3
|
|
2
|
+
description "Your local master branch has diverged from " +
|
|
3
|
+
"the remote origin/master branch. Rebase your commit onto " +
|
|
4
|
+
"origin/master and push it to remote."
|
|
5
|
+
|
|
6
|
+
setup do
|
|
7
|
+
# remember the working directory so we can come back to it later
|
|
8
|
+
cwd = Dir.pwd
|
|
9
|
+
# initialize another git repo to be used as a "remote"
|
|
10
|
+
tmpdir = Dir.mktmpdir
|
|
11
|
+
|
|
12
|
+
# local repo
|
|
13
|
+
repo.init
|
|
14
|
+
|
|
15
|
+
FileUtils.touch "file1"
|
|
16
|
+
repo.add "file1"
|
|
17
|
+
repo.commit_all "First commit"
|
|
18
|
+
|
|
19
|
+
FileUtils.touch "file2"
|
|
20
|
+
repo.add "file2"
|
|
21
|
+
repo.commit_all "Second commit"
|
|
22
|
+
|
|
23
|
+
# copy the repo to remote
|
|
24
|
+
FileUtils.cp_r ".", tmpdir
|
|
25
|
+
# add another file
|
|
26
|
+
FileUtils.touch "file3"
|
|
27
|
+
repo.add "file3"
|
|
28
|
+
repo.commit_all "Third commit"
|
|
29
|
+
|
|
30
|
+
# remote repo
|
|
31
|
+
Dir.chdir tmpdir
|
|
32
|
+
repo.init
|
|
33
|
+
# make a 'non-bare' repo accept pushes
|
|
34
|
+
`git config receive.denyCurrentBranch ignore`
|
|
35
|
+
|
|
36
|
+
# add a different file and commit so remote and local would diverge
|
|
37
|
+
FileUtils.touch "file4"
|
|
38
|
+
repo.add "file4"
|
|
39
|
+
repo.commit_all "Fourth commit"
|
|
40
|
+
|
|
41
|
+
# change back to original repo to set up a remote
|
|
42
|
+
Dir.chdir cwd
|
|
43
|
+
`git remote add origin #{tmpdir}/.git`
|
|
44
|
+
`git fetch origin`
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
solution do
|
|
48
|
+
repo.init
|
|
49
|
+
result = true
|
|
50
|
+
|
|
51
|
+
# Check the commits of the local branch and the branch are the same.
|
|
52
|
+
local_commits = repo.commits("master")
|
|
53
|
+
remote_commits = repo.commits("origin/master")
|
|
54
|
+
result = false unless local_commits.size == 4
|
|
55
|
+
local_commits.each_with_index do |commit, idx|
|
|
56
|
+
result &&= (commit.id == remote_commits[idx].id)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
result
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
hint do
|
|
63
|
+
puts "Take a look at 'git fetch', 'git pull', and 'git push'"
|
|
64
|
+
end
|
data/levels/rm_cached.rb
CHANGED
|
@@ -3,7 +3,7 @@ difficulty 2
|
|
|
3
3
|
description "A file (deleteme.rb) has accidentally been added to your staging area, find out which file and remove it from the staging area. *NOTE* Do not remove the file system, only from git."
|
|
4
4
|
|
|
5
5
|
setup do
|
|
6
|
-
repo.init
|
|
6
|
+
repo.init
|
|
7
7
|
FileUtils.touch("deleteme.rb")
|
|
8
8
|
repo.add(".gitignore")
|
|
9
9
|
repo.add("deleteme.rb")
|
data/levels/stage_lines.rb
CHANGED
|
@@ -21,7 +21,7 @@ setup do
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
solution do
|
|
24
|
-
`git diff --no-color --staged` =~ /\+This change belongs to the first feature/ && `git diff --no-color` =~ /\+This change belongs to the second feature/
|
|
24
|
+
`git diff --no-ext-diff --no-color --staged` =~ /\+This change belongs to the first feature/ && `git diff --no-ext-diff --no-color` =~ /\+This change belongs to the second feature/
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
hint do
|
data/lib/githug/level.rb
CHANGED
|
@@ -4,9 +4,9 @@ module Githug
|
|
|
4
4
|
|
|
5
5
|
LEVELS = [nil, "init", "add", "commit", "config", "clone",
|
|
6
6
|
"clone_to_folder", "ignore", "status", "rm", "rm_cached",
|
|
7
|
-
"rename", "log", "tag", "
|
|
7
|
+
"rename", "log", "tag", "commit_amend", "reset",
|
|
8
8
|
"checkout_file", "remote", "remote_url", "pull", "remote_add",
|
|
9
|
-
"diff", "blame", "branch", "checkout", "branch_at", "merge",
|
|
9
|
+
"push", "diff", "blame", "branch", "checkout", "branch_at", "merge",
|
|
10
10
|
"cherry-pick", "rename_commit", "squash", "merge_squash", "reorder",
|
|
11
11
|
"bisect", "stage_lines", "find_old_branch", "revert", "restore",
|
|
12
12
|
"contribute"]
|
data/lib/githug/repository.rb
CHANGED
|
@@ -31,8 +31,9 @@ module Githug
|
|
|
31
31
|
!@grit.nil?
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
# Initialize a Git repo. If the repo already exists, do nothing.
|
|
35
|
+
def init(location = ".")
|
|
36
|
+
@grit = Grit::Repo.init(location)
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
def method_missing(method, *args, &block)
|
data/lib/githug/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: githug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.8
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Gary Rennie
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2012-
|
|
13
|
+
date: 2012-09-30 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|
|
@@ -76,10 +76,12 @@ files:
|
|
|
76
76
|
- githug.gemspec
|
|
77
77
|
- levels/add.rb
|
|
78
78
|
- levels/bisect.rb
|
|
79
|
+
- levels/bisect/.githug/COMMIT_EDITMSG
|
|
79
80
|
- levels/bisect/.githug/HEAD
|
|
80
81
|
- levels/bisect/.githug/ORIG_HEAD
|
|
81
82
|
- levels/bisect/.githug/config
|
|
82
83
|
- levels/bisect/.githug/description
|
|
84
|
+
- levels/bisect/.githug/gitk.cache
|
|
83
85
|
- levels/bisect/.githug/hooks/applypatch-msg.sample
|
|
84
86
|
- levels/bisect/.githug/hooks/commit-msg.sample
|
|
85
87
|
- levels/bisect/.githug/hooks/post-commit.sample
|
|
@@ -96,8 +98,8 @@ files:
|
|
|
96
98
|
- levels/bisect/.githug/logs/HEAD
|
|
97
99
|
- levels/bisect/.githug/logs/refs/heads/master
|
|
98
100
|
- levels/bisect/.githug/objects/info/packs
|
|
99
|
-
- levels/bisect/.githug/objects/pack/pack-
|
|
100
|
-
- levels/bisect/.githug/objects/pack/pack-
|
|
101
|
+
- levels/bisect/.githug/objects/pack/pack-59fab357f3158a9640633de6a3326ed79a2b4fe6.idx
|
|
102
|
+
- levels/bisect/.githug/objects/pack/pack-59fab357f3158a9640633de6a3326ed79a2b4fe6.pack
|
|
101
103
|
- levels/bisect/.githug/packed-refs
|
|
102
104
|
- levels/bisect/makefile
|
|
103
105
|
- levels/bisect/prog.rb
|
|
@@ -192,7 +194,7 @@ files:
|
|
|
192
194
|
- levels/clone.rb
|
|
193
195
|
- levels/clone_to_folder.rb
|
|
194
196
|
- levels/commit.rb
|
|
195
|
-
- levels/
|
|
197
|
+
- levels/commit_amend.rb
|
|
196
198
|
- levels/config.rb
|
|
197
199
|
- levels/contribute.rb
|
|
198
200
|
- levels/diff.rb
|
|
@@ -291,6 +293,7 @@ files:
|
|
|
291
293
|
- levels/merge/file1
|
|
292
294
|
- levels/merge_squash.rb
|
|
293
295
|
- levels/pull.rb
|
|
296
|
+
- levels/push.rb
|
|
294
297
|
- levels/remote.rb
|
|
295
298
|
- levels/remote_add.rb
|
|
296
299
|
- levels/remote_url.rb
|
|
Binary file
|