5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:01:42 +00:00

documentación

closes #1094
closes #1093
closes #1089
closes #1054
This commit is contained in:
f 2021-04-16 10:36:18 -03:00
parent d3174c6e3f
commit 8fc054a735

View file

@ -8,6 +8,7 @@ class Site
class Repository
attr_reader :rugged, :changes, :path
# @param [String] la ruta del repositorio
def initialize(path)
@path = path
@rugged = Rugged::Repository.new(path)
@ -41,6 +42,8 @@ class Site
#
# XXX: Prestar atención a la velocidad de respuesta cuando tengamos
# repositorios remotos.
#
# @return [Integer]
def fetch
if origin.check_connection :fetch
@changes = rugged.fetch(origin)[:received_objects]
@ -51,6 +54,7 @@ class Site
# Incorpora los cambios en el repositorio actual
#
# @return [Rugged::Commit]
def merge(usuarie)
merge = rugged.merge_commits(head_commit, remote_head_commit)