Skip to content

Commit

Permalink
vendor - update rugged to v0.23.3
Browse files Browse the repository at this point in the history
* includes libgit 0.23.3

* Need to test on RP and Windows for compatibility
  • Loading branch information
samaaron committed Dec 5, 2015
1 parent 4165a3c commit 79f3125
Show file tree
Hide file tree
Showing 5,046 changed files with 181,729 additions and 60,004 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ app/server/rb-native/

## Rugged

app/server/vendor/rugged/ext/rugged/Makefile
app/server/vendor/rugged/vendor/libgit2/build
app/server/vendor/rugged*/ext/rugged/Makefile
app/server/vendor/rugged*/vendor/libgit2/build

## Atomic

Expand Down
2 changes: 1 addition & 1 deletion app/server/bin/compile-extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# Rugged is used for storing the user's ruby music scripts in Git
# FFI is used for MIDI lib support
native_ext_dirs = [
File.expand_path(File.dirname(__FILE__) + '/../vendor/rugged/ext/rugged'),
File.expand_path(File.dirname(__FILE__) + '/../vendor/rugged-0.23.3/ext/rugged'),
File.expand_path(File.dirname(__FILE__) + '/../vendor/ffi-1.9.10/ext/ffi_c'),
File.expand_path(File.dirname(__FILE__) + '/../vendor/atomic/ext'),
File.expand_path(File.dirname(__FILE__) + '/../vendor/ruby-prof-0.15.8/ext/ruby_prof/'),
Expand Down
4 changes: 4 additions & 0 deletions app/server/vendor/rugged-0.23.3/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test/fixtures/*.git/packed-refs text eol=lf
test/fixtures/*.git/logs/**/* text eol=lf

script/* text eol=lf
14 changes: 14 additions & 0 deletions app/server/vendor/rugged-0.23.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.bundle
*.swp
Gemfile.lock
tmp/
test/fixtures/testrepo.git
ext/rugged/vendor/libgit2-dist/
ext/rugged/vendor/mkmf.log
ext/rugged/libgit2_embed.a
lib/rugged/**/rugged.so
.yardoc
vendor/gems
bin/
pkg/
rdoc/
3 changes: 3 additions & 0 deletions app/server/vendor/rugged-0.23.3/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "vendor/libgit2"]
path = vendor/libgit2
url = https://github.com/libgit2/libgit2.git
35 changes: 35 additions & 0 deletions app/server/vendor/rugged-0.23.3/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: ruby
cache: bundler

os:
- linux
- osx

rvm:
- 1.9.3
- 2.0.0
- 2.1.5
- 2.2.2
- ruby-head
- rbx-2

addons:
apt:
packages:
- cmake
- libssh2-1-dev
- openssh-client
- openssh-server

sudo: false

matrix:
fast_finish: true
allow_failures:
- rvm: rbx-2
- rvm: ruby-head

before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/script/install-deps-osx.sh; fi

script: script/travisbuild
285 changes: 285 additions & 0 deletions app/server/vendor/rugged-0.23.3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@

## Rugged 0.23.3 (October 6, 2015) ##

* Update bundled libgit2 to 0.23.3.

See https://github.com/libgit2/libgit2/releases/tag/v0.23.3
for a list of fixed issues and new features.

*Arthur Schreiber*

## Rugged 0.23.2 (August 13, 2015) ##

* Update bundled libgit2 to 98f7bd289dfb172473b7d7353d4b0f0b09c67937.

*Vicent Martí*

## Rugged 0.23.1 (August 11, 2015) ##

* Update bundled libgit2 to 98f7bd289dfb172473b7d7353d4b0f0b09c67937.

*Vicent Martí*

## Rugged 0.23.0 (July 6, 2015) ##

* Update bundled libgit2 to 0.23.0.

See https://github.com/libgit2/libgit2/releases/tag/v0.23.0
for a list of fixed issues and new features.

*Arthur Schreiber*

* Add `Rugged::Repository#checkout_index`.

This allows to perform checkout from a given index.
It might be handy in case of manual merge conflicts resolution with user intervention.

*Dmytro Milinevskyy*

* Remove `Rugged::Submodule#reset_update_rule`, `Rugged::Submodule#reset_ignore_rule`
and `Rugged::Submodule#save`.

These methods were removed due to changes in the underlying libgit2 API.

*Arthur Schreiber*

* Add `Rugged::Blob#loc`.

Returns the number of lines in a blob, assuming it is plaintext.

*Vicent Martí*

* Add `Rugged::Walker.walk`.

This API allows creating a walker, performing a walk, and cleaning it up
immediately after the walk was performed.

*Vicent Martí*

* Add accessors for the Repository ident.

Added `Repository#ident` and `Repository#ident=` to read and set the
identity that is used when writing reflog entries.

*Arthur Schreiber*

* `Rugged::Remote` instances are now immutable.

* `Remote#clear_refspecs` and `Remote#save` were removed without
replacement.

* `Remote#url=` and `Remote#push_url=` were removed and replaced by
`RemoteCollection#set_url` and `RemoteCollection#set_push_url`.

* `Remote#add_push` and `Remote#add_fetch` were removed and replaced by
`RemoteCollection#add_push_refspec` and
`RemoteCollection#add_fetch_refspec`.

*Arthur Schreiber*

* Update bundled libgit2 to 9042693e283f65d9afb4906ed693a862a250664b.

*Arthur Schreiber*

* Updated the API of reflog modifying methods.

This removes both the optional `:message` as well as `:signature` options from
the following methods:

* `BranchCollection#create`, `BranchCollection#move`, `BranchCollection#rename`
* `ReferenceCollection#create`, `ReferenceCollection#rename`
* `Remote#push`
* `Repository#reset`

Additionally, the `:signature` option from `Remote#fetch` was removed as well.

The reflog message is now automatically generated and committed with the
the identity that is set in the Repository's configuration.

*Arthur Schreiber*

* The `:safe_create` flag was removed from `Repository#checkout_tree`.

You can use `:create` in combination with `:recreate_missing` instead.

*Arthur Schreiber*


## Rugged 0.22.2 (May 17, 2015) ##

* Update bundled libgit2 to 0.22.2.

See https://github.com/libgit2/libgit2/releases/tag/v0.22.0,
https://github.com/libgit2/libgit2/releases/tag/v0.22.1 and
https://github.com/libgit2/libgit2/releases/tag/v0.22.2 for a list
of fixed issues and new features.

*Arthur Schreiber*

* Add `Rugged::Tree#count_recursive`.

This counts all blobs in a tree, recursively, with an optional limit
to bail early. This allows asking things like: "Are there more
than 1 million files in this repo?" in a very performant way.

Fixes #464.

*Andy Delcambre*

* Add missing handling of libgit2 errors in `Rugged::BranchCollection#each`
and `Rugged::BranchCollection#each_name`.

Fixes #457.

*aiionx*

* The `Rugged::Tree::Builder` API was changed to account for libgit2 changes.

When creating a new `Rugged::Tree::Builder` instance through
`Rugged::Tree::Builder.new` you have to pass a repository instance,
while `Rugged::Tree::Builder#write` does not take any arguments anymore.

*Vicent Martí*

* Add alternative backend support (experimental).

Bare repositories can now be stored using an alternative backend.

Fixes #410.

*Viktor Charypar*

* Replace `Remote#rename!` with `RemoteCollection#rename`.

This brings the `RemoteCollection` more in line with the API of
`ReferenceCollection` and `BranchCollection`.

*Arthur Schreiber*

* Remove URL validation from `Remote#url=`, `Remote#push_url=`,
`RemoteCollection#create_anonymous` and `RemoteCollection#create`,
as the underlying function `git_remote_supported_url()` was removed
from libgit2.

*Arthur Schreiber*

* Add `Repository#merge_bases`.

This returns an array containing all merge bases between one or
multiple commits.

*Arthur Schreiber*

* Add submodule support.

Expose git submodules functionality through `Rugged::Submodule` and
`Rugged::SubmoduleCollection`.

*Nikolai Vladimirov*

* Add `Rugged::Walker#push_range`.

*Evgeniy Sokovikov*

* Implement `Rugged::Blob::HashSignature` and `Rugged::Blob#hashsig`.

Allows similarity detection of `Rugged::Blob` instances against other blobs or
arbitrary strings.

*Vicent Martí*

* Add `Rugged::Repository#attributes`.

This method allows accessing the attributes for different path names as
specified by `.gitattributes` files.

*Vicent Martí*

* Add `Rugged::TagCollection#create_annotation`.

This method allows the creation of a tag object, but without creating
a tag reference.

*Charlie Somerville*

* Add `Rugged::Repository#cherrypick`.

*Arthur Schreiber*

* Add `Rugged::Repository#descendant_of?`

*Jake Douglas*

* `Rugged::Index#read_tree` now actually checks that the given object is a
`Rugged::Tree` instance.

Fixes #401.

*Andy Delcambre*

* Add `Rugged::Repository#expand_oids`.

This allows expanding a list of shortened SHA1 strings, optionally restricting
the expansion to a specific object type.

*Vicent Martí*

* Add `Rugged::Remote#check_connection`.

This is useful if one needs to check if it is possible to fetch/push
from/to the remote.

Basically, it is analogue to `git fetch --dry-run` and `git push --dry-run`.

*Dmitry Medvinsky*

* Remove defunct `Rugged::Diff::Line#hunk` and `Rugged::Diff::Line#owner`.

Fixes #390.

*Arthur Schreiber*

* Remove `Rugged::Diff#tree` and change `Rugged::Diff#owner` to return the
repository that the `Rugged::Diff` object belongs to.

We need to keep a reference from the `Rugged::Diff` to the repository to
ensure that the underlying libgit2 data does not get freed accidentally.

Fixes #389.

*Arthur Schreiber*

* Add `#additions` and `#deletions` to `Rugged::Patch`.

*Mindaugas Mozūras*


## Rugged 0.21.4 (January 18, 2015) ##

* Update bundled libgit2 to 0.21.4.

See https://github.com/libgit2/libgit2/releases/tag/v0.21.4 for a list
of fixed issues.

*Arthur Schreiber*


## Rugged 0.21.3 (December 18, 2014) ##

* Update bundled libgit2 to 0.21.3.

See https://github.com/libgit2/libgit2/releases/tag/v0.21.3 for a list
of fixed issues.

*Arthur Schreiber*


## Rugged 0.21.2 (November 16, 2014) ##

* Update bundled libgit2 to 0.21.2 (from 0.21.0).

See https://github.com/libgit2/libgit2/releases/tag/v0.21.1 and
https://github.com/libgit2/libgit2/releases/tag/v0.21.2 for a list
of fixed issues.

*Arthur Schreiber*
7 changes: 7 additions & 0 deletions app/server/vendor/rugged-0.23.3/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "http://rubygems.org"

platforms :rbx do
gem 'rubysl', '~> 2.0'
end

gemspec
21 changes: 21 additions & 0 deletions app/server/vendor/rugged-0.23.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2014 GitHub, Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 79f3125

Please sign in to comment.