Skip to content
Closed

Tests #317

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
93254e5
add support for pushing tags
titanous Dec 20, 2008
d6418a0
don't depend on global $HOME/.gitconfig
Jul 23, 2008
89ba125
Edited GitWeb::Controllers::JSHighlight#get: changed text/css to text…
devyn Oct 14, 2008
93ea661
Added :allow_empty option to commit
koke May 5, 2008
36fb3cd
Add :author option to commit
koke May 6, 2008
ba8a413
Added branch checking methods
koke May 6, 2008
29cbae7
- DiffFile#binary?
hotchpotch Jul 25, 2008
4965154
add skip options.
hotchpotch Jul 25, 2008
81e80b0
add test for these commits.
hotchpotch Jul 25, 2008
db1c2c9
Allow more powerful grepping in Base grep method.
kenpratt Aug 13, 2008
c9fe649
very important!!! shell command escaping added
Feb 7, 2009
b3089f0
test adapted
Feb 7, 2009
8ea488b
missing -- added, code cleanup
Feb 7, 2009
61d3d4e
trim message string
Feb 9, 2009
05117d4
indent parameter for parsing commit data
Feb 9, 2009
dd4706e
initialize instance variables to prevent warnings,
Feb 10, 2009
08922f6
unused _class_ instance variables removed
Feb 12, 2009
5376064
Converted a case statement for Ruby 1.9.1 compatibility
ELLIOTTCABLE Feb 12, 2009
3b262a7
String#to_a is gone as of Ruby 1.9.1
ELLIOTTCABLE Feb 12, 2009
690b2de
One more fix for Ruby 1.9.1 compatibility (String#map? Did that *ever…
ELLIOTTCABLE Feb 12, 2009
a512101
Version bump to indicate Ruby 1.9.1 compatibility
ELLIOTTCABLE Feb 12, 2009
86b45ed
Merge branch 'master' of git://github.com/elliottcable/ruby-git
Feb 12, 2009
b97ff5e
remove doc from revision control
titanous Dec 24, 2008
257fd8d
fixes to stash apply so tests pass
schacon Feb 12, 2009
9863034
bumped version to 1.1 - ruby 1.9 compatible now
schacon Feb 12, 2009
0cb5434
Merge commit 'origin/master' into minad/master
schacon Feb 12, 2009
076df64
version bump to 1.1.1
schacon Feb 12, 2009
96bf1ac
Status no longer includes ignored files.
gf3 Mar 12, 2009
ee90922
Added support for filenames which are quoted (usually containing inte…
gf3 Mar 17, 2009
decd4b2
Removed deprecated use of Gem.manage_gems. Added homepage to gemspec …
technicalpickles Apr 27, 2009
8131f47
Switched to jeweler.
technicalpickles May 4, 2009
4de1494
Whoops... removed extra jeweler skeleton.
technicalpickles May 4, 2009
b86cbd6
Improved support for configuration.
technicalpickles Aug 1, 2009
1455f9a
Added a real summary, and a requirement on git 1.6.0.0 to gemspec.
technicalpickles Aug 1, 2009
ddc5b77
Added a warning if you're using an old version of git.
technicalpickles Aug 1, 2009
145172b
Version bump to 1.2.0
technicalpickles Aug 1, 2009
cfad767
Regenerated gemspec for version 1.2.0
technicalpickles Aug 1, 2009
2aca293
Moved logic to determine if git command meets required version down i…
technicalpickles Aug 1, 2009
c990974
Version bump to 1.2.1
technicalpickles Aug 1, 2009
f85cef0
Regenerated gemspec for version 1.2.1
technicalpickles Aug 1, 2009
4cc87eb
Account for not having a tiny git version (ie 1.6.4)
technicalpickles Aug 2, 2009
b8eb7dd
Version bump to 1.2.2
technicalpickles Aug 2, 2009
85fa6ec
Regenerated gemspec for version 1.2.2
technicalpickles Aug 2, 2009
053d49c
schacon Aug 10, 2009
a825ea7
Switch over to new jeweler rubyforge tasks.
technicalpickles Aug 2, 2009
ea0a1f9
Fixed github url, and updated install instructions to use rubyforge.
technicalpickles Sep 30, 2009
2578040
Escape with double quotes instead of single
technicalpickles Sep 30, 2009
2411e86
Version bump to 1.2.3
technicalpickles Sep 30, 2009
2962356
Regenerated gemspec for version 1.2.3
technicalpickles Sep 30, 2009
a7aadb2
give block a path arg so ruby1.9 doesnt throw exception
zacheryph Oct 2, 2009
d11da5b
Version bump to 1.2.4
technicalpickles Oct 2, 2009
1987b50
Regenerated gemspec for version 1.2.4
technicalpickles Oct 2, 2009
cf01e25
allow ls_files to take a subdirectory argument
bryanlarsen Oct 13, 2009
7250ad4
Version bump to 1.2.5
technicalpickles Oct 17, 2009
94f389b
Regenerated gemspec for version 1.2.5
technicalpickles Oct 17, 2009
6e68259
Fixed typo in README
fixlr Aug 22, 2011
b79de3a
Merge pull request #26 from fixlr/master
technicalpickles Sep 2, 2011
0f10c11
add markdown styling to readme
schneems Oct 19, 2011
0777848
Added git ls-remote command to Git::Lib
JangoSteve Dec 10, 2011
7b15570
Added with_track option (-t <branch>) to remote_add
gabriel-cardoso Mar 21, 2012
b739a0d
remove command doesn't need the --. Should be git remote rm <name>
chadrosen Apr 17, 2012
7279897
Add --recursive option to clone command
tit Jan 19, 2013
6dea92c
Update README
robertodecurnex Apr 3, 2013
a308cc9
Sorting Git module
robertodecurnex Apr 10, 2013
79b72dd
Making the project setup easier (Gemfile and development_dependencies)
robertodecurnex Apr 10, 2013
66fff95
Merge pull request #63 from robertodecurnex/master
robertodecurnex Apr 10, 2013
9e05a0a
closes #34
robertodecurnex Apr 10, 2013
c7f4b26
Merge remote-tracking branch 'upstream/master' into develop
robertodecurnex Apr 10, 2013
d4eddcd
Supporting #last on Git::Log
robertodecurnex Apr 10, 2013
889273b
Adding LICENSE to the gem
robertodecurnex Apr 11, 2013
612d673
Adding licese type to the gemspec
robertodecurnex Apr 11, 2013
35e10d6
Adding :config support to Lib#clone
robertodecurnex Apr 11, 2013
fab7774
Adding .travis.yml
robertodecurnex Apr 11, 2013
4829cd8
Changing README to README.md in gemspec
robertodecurnex Apr 11, 2013
964610c
Adding rake as developmentdependency
robertodecurnex Apr 11, 2013
e6c11e9
Removing (and ignoring) Gemfile.lock
robertodecurnex Apr 11, 2013
fc0923a
Enabling cext in jrubyi
robertodecurnex Apr 11, 2013
24b5569
.travis.yml config to enable jruby cext
robertodecurnex Apr 11, 2013
a720b6e
Update README.md
robertodecurnex Apr 11, 2013
e779b3f
Merge remote-tracking branch 'origin/master' into develop
robertodecurnex Apr 11, 2013
8f84310
Adding test for #clone with :config options
robertodecurnex Apr 11, 2013
f2cfb48
Removing ruby-prof from the gemfile (problems with cext)
robertodecurnex Apr 11, 2013
7d5690a
Merge branch 'patch-1' of git://github.com/gabriel-cardoso/ruby-git i…
robertodecurnex Apr 11, 2013
ff2f09f
Merge branch 'develop' into gabriel-cardoso-patch-1
robertodecurnex Apr 11, 2013
7045d8a
Adding :track => <branch_name> and :fetch => true option to add_remote
robertodecurnex Apr 11, 2013
2e459c2
Setting up git user name and email before tests (if they are not pres…
robertodecurnex Apr 12, 2013
07227af
Validating tmp_path before try to create the directory on #in_temp_di…
robertodecurnex Apr 12, 2013
edbc151
Merge branch 'master' of git://github.com/chadrosen/ruby-git into rem…
robertodecurnex Apr 15, 2013
1576632
Removing old doc (it's working now)
robertodecurnex Apr 15, 2013
9251418
Removing jruby and ruby 2 from travis until we fix related issues wit…
robertodecurnex Apr 15, 2013
35683a1
Adding #remove_remote to Git::Base (adding some tests too)
robertodecurnex Apr 15, 2013
34f935e
Adding tests over #remove for remotes.
robertodecurnex Apr 15, 2013
7905a84
Adding support for :all option on Git::Base#add and Git::Lib#add
robertodecurnex Apr 15, 2013
fbbfe07
Updating g.add doc
robertodecurnex Apr 15, 2013
3644088
Cleaning up warnings
robertodecurnex Apr 26, 2013
2d06008
Re-enabling ruby 2.0.0 and ruby-head on travis.
robertodecurnex Apr 26, 2013
1175e04
Removing duplications
robertodecurnex Apr 26, 2013
2963082
Merge remote-tracking branch 'tit/master' into develop
robertodecurnex Apr 26, 2013
2a622a7
--no-color as default for log commands.
robertodecurnex Apr 26, 2013
4d53ca2
raise expects the stacktrace to be an array.
robertodecurnex Apr 29, 2013
cc0e3bb
trying jruby build
robertodecurnex Apr 29, 2013
dcb44d2
Add git revert --no-edit support.
joemoore Apr 29, 2013
3ec51b6
Add git clean support
joemoore Apr 29, 2013
27c4688
TempFile changes to support JRUBY
robertodecurnex Apr 29, 2013
ee51cb0
Re-enabling travis for every ruby implementation
robertodecurnex Apr 29, 2013
0461e5f
Update README.md
robertodecurnex Apr 29, 2013
fc83722
Merge remote-tracking branch 'origin/develop'
robertodecurnex Apr 29, 2013
4d8d545
replace fetch + merge with git pull
mikemallete May 23, 2013
42d0d13
to silence warning about misalignment of class-end declaration
mikemallete May 23, 2013
a147c77
ooops missed to commit lib changes
mikemallete May 24, 2013
121866c
Supporting force => true on add. closes #6
robertodecurnex Aug 16, 2013
cd92323
Merge branch 'master' of git://github.com/mikemallete/ruby-git into p…
robertodecurnex Aug 16, 2013
a80e1bb
Adding git pull examples
robertodecurnex Aug 16, 2013
77707c2
Supporting git init with --bare
robertodecurnex Aug 16, 2013
dac73b7
Supporting arrays for the Log path method. Closes #62
robertodecurnex Aug 16, 2013
f9c9ce7
Merge branch 'git-clean' of git://github.com/fasttracktool-dev/ruby-g…
robertodecurnex Aug 16, 2013
11a8137
Making options optional
robertodecurnex Aug 16, 2013
6140db1
Adding test over git clean without -d
robertodecurnex Aug 16, 2013
70a8689
opps, removing ruby 1.9 hash syntax.
robertodecurnex Aug 16, 2013
b8f719d
Merge branch 'revert-support' of git://github.com/fasttracktool-dev/r…
robertodecurnex Aug 17, 2013
9f795da
Merge branch 'revert-support' of git://github.com/fasttracktool-dev/r…
robertodecurnex Aug 17, 2013
6ee6a52
Git::Path - Validates existence of absolute paths instead of relative…
robertodecurnex Aug 17, 2013
ed6b3e2
Option name changes over revert
robertodecurnex Aug 17, 2013
0d0e055
git.commit - Supporting :amend and :all (instead of :add_all)
robertodecurnex Aug 17, 2013
6db4fdc
Version 1.2.6 changelog
robertodecurnex Aug 17, 2013
b50457f
Update README.md
robertodecurnex Aug 30, 2013
12dd8aa
Update README.md
robertodecurnex Aug 30, 2013
39b6cb0
Make tests defensive against timezones
ohtake Sep 12, 2013
f981a00
Tabs to spaces in lib.rb
davefp Dec 5, 2013
481ee7c
Fixing a minor typo in the README for getting all of the tags
Swimminschrage Dec 17, 2013
dfaa57b
Add -x option to 'clean' to remove ignored files
cwalsh Jan 6, 2014
6612438
foo
robertodecurnex Jan 13, 2014
577db1e
Including dot files in `Git.status`
robertodecurnex Jan 13, 2014
d9556b4
Fixing `Git::Lib.escape`
robertodecurnex Jan 13, 2014
8117660
Removing .foo
robertodecurnex Jan 13, 2014
c36eab4
Merge pull request #116 from cwalsh/feature/clean-dash-x
robertodecurnex Jan 13, 2014
00927c2
Merge pull request #112 from davefp/patch-1
robertodecurnex Jan 13, 2014
9b3cc41
Allowing failures for RBX (weird problems with RBX+Travis)
robertodecurnex Jan 13, 2014
4742c25
Merge branch 'master' of github.com:schacon/ruby-git
robertodecurnex Jan 13, 2014
58fef2f
Merge pull request #114 from Swimminschrage/patch-1
robertodecurnex Jan 13, 2014
b36b6fb
Adding force(`--f`) support for the `push` command
robertodecurnex Jan 13, 2014
8852a82
Merge pull request #98 from ohtake/defensive-against-timezones
robertodecurnex Jan 13, 2014
0bf57bb
Removing RBX from travis. Weird env problems.
robertodecurnex Jan 13, 2014
cd0c2b0
Ruby 1.9 to Ruby 1.8 syntax
robertodecurnex Jan 14, 2014
74896f6
more Ruby 1.9 -> 1.8 syntax
robertodecurnex Jan 15, 2014
5d5d7d4
Decreasing code complexity of `meets_required_version?`
robertodecurnex Jan 15, 2014
8ed8ba4
Preventing tests teardown warnings
robertodecurnex Jan 15, 2014
f5caf77
Adding `delete_tag`
robertodecurnex Jan 15, 2014
2116cf9
Updating doc
robertodecurnex Jan 15, 2014
209d9aa
Cleaning Git::Object a little bit
robertodecurnex Jan 15, 2014
97e1fff
Fixing how multi-line commits are parsed
robertodecurnex Jan 17, 2014
b4f6090
Fixing how commit logs are parsed for commits including newlinesi
robertodecurnex Jan 27, 2014
d5175ed
Add --tags option to lib#fetch exposed through base#fetch and remote#…
cwalsh Jan 28, 2014
c293389
Send full force flag to git push
bsedat Jan 28, 2014
935bded
Merge pull request #127 from bsedat/git-push-force
robertodecurnex Jan 28, 2014
f54809d
Merge pull request #126 from cwalsh/feature/fetch_tags
robertodecurnex Jan 29, 2014
7d67046
Cleaning up unused files/tasks
robertodecurnex Feb 3, 2014
dbfcb40
Merge branch 'master' of github.com:schacon/ruby-git
robertodecurnex Feb 3, 2014
5ff106a
Improving how we escape single quotes refs #129 #5 #112 #95 #39
robertodecurnex Feb 5, 2014
41d9e3e
Adding 'git add' single quote test
robertodecurnex Feb 5, 2014
a87ee1a
additional test for branch#create method
arnvald Feb 7, 2014
76f6c23
Fix options Hash examples (:repository, :index)
guyhughes May 21, 2014
fae79ba
Merge pull request #146 from guyhughes/patch-1
robertodecurnex Jun 4, 2014
219c729
Moving version to 1.2.7
Jun 9, 2014
d4c4a6a
Updating History - v1.2.7
Jun 9, 2014
33f100f
revparse: Supporting ref names containing SHA like substrings (40-hex…
Jun 25, 2014
43fdec6
Fix warnings on Ruby 2.1.2.
nishidayuya Jul 7, 2014
656b2ed
Add 2.1 entry.
nishidayuya Jul 7, 2014
2f8bf94
Merge pull request #157 from nishidayuya/fix_warnings_on_ruby_2.1.2
robertodecurnex Jul 8, 2014
baf8a20
Handle prune option in git fetch
xavier-calland Jul 21, 2014
55a4903
Keeping the old escape format for windows users
robertodecurnex Jul 31, 2014
8425a6b
Removing jruby-head from .travis.yml
Jul 31, 2014
c7b8d0f
Test Unit needs specificity
Aug 6, 2014
02cd609
test:unit 2.2.0 is the earliest able to run tests
Aug 6, 2014
65da281
let test:unit use version 3 as well
Aug 6, 2014
ce19ed4
dont allow 2.1.1.0
Aug 7, 2014
c7b31d1
Git::Diff - don't convert to empty string if from/to is nil
sfdcfluong Sep 26, 2014
13db9b9
Adding Ruby 2.1.2 to Travis
Sep 29, 2014
f495812
Removing assertion over deleted files after `git add` since Git now i…
Sep 29, 2014
f2b826b
preserve former git environment variables
mwrock Oct 23, 2014
dc008fa
Fix tests failing if run between Nov 7 16:50:57 -0800 and Jan 1 00:00…
othatbrian Nov 21, 2014
2c38c40
Don't let Ruby auto-delete archives
adamhooper Nov 25, 2014
09002a4
Merge pull request #192 from othatbrian/master
robertodecurnex Nov 28, 2014
8da40ed
Merge pull request #193 from adamhooper/master
robertodecurnex Nov 29, 2014
f3d02a1
Merge pull request #187 from mwrock/master
robertodecurnex Dec 2, 2014
cc95cfa
Updating how we set and restore ENV variables when runing commands
robertodecurnex Dec 2, 2014
823e4ee
Preventing Git::Diff from parsing files content as diff metadata
robertodecurnex Dec 3, 2014
e55f3bd
Adding tests covering diff over patch files
robertodecurnex Dec 3, 2014
d72c4ab
Adding mutex to `command` to prevent multiple parallel executions to …
Sep 29, 2014
9109f72
Testing creation of bare repositories in parallel
Sep 29, 2014
a7b30d9
Preventing global vars to get overwritten before ending the current g…
robertodecurnex Dec 29, 2014
f0f5307
Adding `git describe` support
robertodecurnex Dec 29, 2014
d6f7cb0
Update README.md
robertodecurnex Dec 29, 2014
92c088b
Adding `Git.config` support (ssh_key and binary_path)
robertodecurnex Dec 29, 2014
9796786
Merge branch 'master' of github.com:schacon/ruby-git
robertodecurnex Dec 29, 2014
6eee233
Updating README with Git.config examples
robertodecurnex Dec 29, 2014
8e377fb
Update README.md
robertodecurnex Dec 30, 2014
656ea71
Adding branch option support for #clone.
NotDaveLane Jan 3, 2015
b0e111f
Updating ssh_key -> git_ssh
robertodecurnex Jan 5, 2015
55dae73
Merge branch 'master' of github.com:schacon/ruby-git
robertodecurnex Jan 5, 2015
7662ed5
Merge branch 'master' of https://github.com/NotDaveLane/ruby-git into…
robertodecurnex Jan 5, 2015
eece801
Adding Git.clone test for :branch option
robertodecurnex Jan 5, 2015
50d80b6
Merge branch 'NotDaveLane-master'
robertodecurnex Jan 5, 2015
45b085a
Merge branch 'diff_fix_current_vs_head' of https://github.com/francis…
robertodecurnex Jan 5, 2015
b05a8d2
Merge branch 'test_unit_needs_specificity' of https://github.com/kwst…
robertodecurnex Jan 5, 2015
69ad1ce
Updating clone --b to clone --branch (just to make it a little more v…
robertodecurnex Jan 5, 2015
dcf050f
Merge pull request #132 from arnvald/test-branch-create-does-not-swit…
robertodecurnex Jan 5, 2015
3dbb7db
Updating `clone` RDoc
robertodecurnex Jan 5, 2015
bf61510
Merge pull request #161 from xavier-calland/fetch_prune
robertodecurnex Jan 5, 2015
e36a41b
Merge pull request #37 from JangoSteve/ls_remote
robertodecurnex Jan 5, 2015
1b86e11
Fixing :new_branch usage on checkout
robertodecurnex Jan 5, 2015
94836cf
Updating checkout tests to cover `-b` option
robertodecurnex Jan 5, 2015
51e3e27
Updating gem version
robertodecurnex Jan 6, 2015
0fffb17
Sorting keys in remote_ls test to prevent problems with ruby 1.8 and ree
robertodecurnex Jan 6, 2015
5f3699a
Moving Git::Base factory methods into a module
robertodecurnex Jan 6, 2015
456f1b6
Moving some Git::Base methods into the Factories module
robertodecurnex Jan 6, 2015
8a48065
Renaming `Git::Base::Factories` -> `Git::Base::Factory`
robertodecurnex Jan 6, 2015
d6c06bd
Adding `Git::show` support
robertodecurnex Jan 6, 2015
5dd09cb
fix typo in documentation
hsitter Jan 12, 2015
13a4d67
Merge pull request #211 from apachelogger/master
robertodecurnex Jan 12, 2015
0348714
Adding methods to tags. related #27
robertodecurnex Jan 12, 2015
b62ed86
Adding `Git::Object::Tag` `.tagger` and `.message` support.
robertodecurnex Jan 12, 2015
62285cc
Support Submodules
Jun 14, 2013
98e36bf
Minor changes over Git::Base
robertodecurnex Jan 12, 2015
a367bff
Preserving original commit sha after parsing the commit data.
robertodecurnex Jan 12, 2015
1f8a832
Making `is_remote_branch?` actually look over the remote branches.
robertodecurnex Jan 12, 2015
321ecf2
Updating 1.2.9 release date
robertodecurnex Jan 12, 2015
f38d1c1
Updating ls_remote doc and enabling it via `Git.ls_remote`
robertodecurnex Jan 12, 2015
99b1156
Updating CHANGELOG
robertodecurnex Jan 12, 2015
308281f
Update README.md
robertodecurnex Jan 12, 2015
47051ed
Preventing `Git::Config.git_ssh` from overwriting the previously set …
robertodecurnex Jan 14, 2015
cc6d6ef
Updating version (1.2.9.1)
robertodecurnex Jan 15, 2015
14738bb
fix git ssh env usage
ericTsiliacos Jan 13, 2015
72d7a3d
Adding `Git::Diff.name_status` support
robertodecurnex Jan 21, 2015
1668f1f
added support for git rm --cached
bakku Oct 14, 2015
fd86ddd
Fix the encoding issue - 'split': invalid byte sequence in UTF-8 (Arg…
Feb 16, 2016
1feb6eb
Merge pull request #276 from davidvartanian/master
robertodecurnex Feb 16, 2016
9d963a3
Merge branch 'master' of https://github.com/bakku/ruby-git into bakku…
robertodecurnex Feb 16, 2016
c7a6983
Updating git rm docs
robertodecurnex Feb 16, 2016
0cb1230
Merge branch 'bakku-master'
robertodecurnex Feb 16, 2016
69bae05
Updating String#encode usage to prevent silly type errors with its pa…
robertodecurnex Feb 25, 2016
bddcc9f
Merge branch 'master' into diff_name_status
robertodecurnex Feb 25, 2016
64a2bdd
Bump version - 1.2.10
robertodecurnex Feb 25, 2016
b224195
Allowing failure on travis for tuby 1.8.x
robertodecurnex Feb 25, 2016
6f48447
Adding before install to travis. (update bundler)
robertodecurnex Feb 25, 2016
3bc4f5e
removing ree and ruby 1.8.7 from travis
robertodecurnex Feb 25, 2016
a223fcf
Bump version 1.3.0
robertodecurnex Feb 25, 2016
37b38b5
Update README.md
perlun Jan 10, 2018
7dde1c7
Whitespace fixes.
perlun Jan 31, 2018
47e3f07
Travis: Fixed unit tests to run again (#344)
perlun Feb 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes to stash apply so tests pass
  • Loading branch information
schacon committed Feb 12, 2009
commit 257fd8db3e60fb655af3c42e224d0a9acaa3624e
9 changes: 6 additions & 3 deletions lib/git/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,12 @@ def stash_save(message)
output =~ /HEAD is now at/
end

def stash_apply(id)
command('stash apply', [id])
# Already uptodate! ---???? What then
def stash_apply(id = nil)
if id
command('stash apply', [id])
else
command('stash apply')
end
end

def stash_clear
Expand Down
4 changes: 2 additions & 2 deletions lib/git/stashes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def save(message)
@stashes.unshift(s) if s.saved?
end

def apply(index=0)
@base.lib.stash_apply(index.to_i)
def apply(index=nil)
@base.lib.stash_apply(index)
end

def clear
Expand Down