From jtelleriar at gmail.com  Sat Jan  6 03:40:45 2018
From: jtelleriar at gmail.com (Juan Telleria)
Date: Sat, 6 Jan 2018 03:40:45 +0100
Subject: [Rd] Community Feedback: Git Repository for R-Devel
In-Reply-To: <CAOKDuOgHmT3FUEY=D6VPWwRk6O8G32BuetkQoL_ZTZCcZD1OGA@mail.gmail.com>
References: <CANNd7==5uV9Cx4gwNfmkC2vtFv++nr_OyeoO3EULJ6ad7qvu=A@mail.gmail.com>
 <CANNd7=kP7Ys+J+F64UKsU_HdhfgFzewi1THZfZEqiwe=_sKR8w@mail.gmail.com>
 <CANNd7=kzGqOdHC+PWXM9C34FJL3jejmjA3kYwbFqhxXWxxP8oA@mail.gmail.com>
 <CANNd7=n5BZ4eagb9E+Dh9hUB1jDhuZenFBpw=X3W33-T7x6fOw@mail.gmail.com>
 <CANNd7=kMGsgH+85_rvm0nhVyFHRT1gKF_ktumda-ki7KXNqb7A@mail.gmail.com>
 <CANNd7=kmzhNwRBVwHJ44HFfKWVZQvL3ut=O7jpSeHN3OkhruWA@mail.gmail.com>
 <CANNd7=nJjOEGnx7Oyoa6uR58gbvxq_PT4nBD638bfEVamg0oaA@mail.gmail.com>
 <CANNd7=kkH57M=ghLvhFAjOsUepBNobkDEqPoVTHteDRmQ0=BoQ@mail.gmail.com>
 <CANNd7=kMOiOg8Qevupcs3_6TLKWQnZcoyddoegYdFp_xmMSm8w@mail.gmail.com>
 <CANNd7=nowWsoZMs2kiusYJRbaUqdC8HGi7MN6HzVPbCJ_GwzEQ@mail.gmail.com>
 <CANNd7=nj+kn1fsgwLajVmTOc2KbCBXr6gXUbXV1zp3bNWpsjyQ@mail.gmail.com>
 <CANNd7=nXy1HqpukX+MmxYoBeVaPENhnkmv33CS6Fp8jgaracyg@mail.gmail.com>
 <CANNd7=nvRYt4DzgN-=e4z51swU8qa12_Ry6cyY-YDVuv+wEUWw@mail.gmail.com>
 <CANNd7=k9J2-DYC7OoU9DM9BCe3ghncAkVa_D99HJMaXvUmLfDw@mail.gmail.com>
 <CANNd7=kbt3E3dsE+h+XB9HH1GH2kDM03uZZCCmBJhuCkuMJL4A@mail.gmail.com>
 <CANNd7==bBNWTDh6cNp_6b1AWBWyBx0TuXK=ug08TOZtWk3FO9w@mail.gmail.com>
 <CANNd7=ktd7Hxh_vnys5SEjgzm_eZZNE8e3iOkVSV-0UqHU3jTg@mail.gmail.com>
 <CANNd7=kCWHU_50yMMGibGfnOfTzvWxz2dymEGnBmUerrO7kQRA@mail.gmail.com>
 <CANNd7=m=v0_8y3gwCNeq-dZNELtc6P+nSJiOq=0dCzq1eXiOwA@mail.gmail.com>
 <CANNd7=mbTRo42u+DBhpOzGoLYaeHYRRU3s4yGrHc=b5+z8o-kg@mail.gmail.com>
 <CANNd7=kJcn-uR5XMHGSS6cq2NWGv1U0gr4cYYqHqKYFHR+_vJw@mail.gmail.com>
 <CANNd7==M0fyFUcyYaw+-3P-mnH7JeXW-QHjBJEs8pC-AExPyJg@mail.gmail.com>
 <CANNd7==AMj3ZNScbbCRPHSM997XOxH21X4VRRG5n-jKzHtfpaQ@mail.gmail.com>
 <CANNd7=nk2_YtE0kWoE3ptHX22b+ddrB4_RKzLsq4AemQc3RNJA@mail.gmail.com>
 <CANNd7=mQVsOxMFHDi6jy_1vcohny08LxqugrhY9M7As208ER7w@mail.gmail.com>
 <CANNd7==sOybEMaDnf7nfmVMTUOp=jsbkPktrPd1asdJ11uAn7w@mail.gmail.com>
 <CANNd7=mZ+xCxu=V5h9684K9=cWZMXxF975CxST0tbrjZCNWG0Q@mail.gmail.com>
 <CANNd7==+Aw1GxbcObFShYRs30W08K6bdWrzKMv2BbSqjCGCEwA@mail.gmail.com>
 <CANNd7=mOgVBCxsDZO8aEFhjYrFabSmaLHmXqvryhszvY+SESew@mail.gmail.com>
 <CANNd7=n-tmYDcL_o3ts-Uosho-2+FLLzgy7++VdwCdXUKnBMVA@mail.gmail.com>
 <CANNd7=kF-xbDqan=pd3jQiDLv=FHvKAnPX-aZzCC5BXXbgjTUQ@mail.gmail.com>
 <CANNd7=ngurw1uUV1=M5vp9tUArUmfKY9KaWfzz0Jmat=A7XVKA@mail.gmail.com>
 <CANNd7==H7gVHY=75XVSsWtrrxatg85c-SJFexEvWBezx_eMZ3w@mail.gmail.com>
 <CANNd7=m0HNTdgdSqQ686ubudiK1u4Ca6wp3k7fFgNFVEyB7O2g@mail.gmail.com>
 <CANNd7=mg1A=yBSz4aq1M+rR2pDYa__33xD+VF=MM82+-qWbX4Q@mail.gmail.com>
 <CANNd7=mwfY4oM488UsDF0zYkeTFhY9x87CV4ANsUMgVtuXtTTw@mail.gmail.com>
 <CANNd7==_1u96TNLWmf3J7xMY1U0NhzSBkdtCQMwbciPOKKzPcA@mail.gmail.com>
 <CANNd7=kZc49PwY9HK+dYRz0Qg-mji-6HWGMSvGnotxKNNExT+Q@mail.gmail.com>
 <CANNd7==ugNBicV3XmW_7ZGT9mvsY+bk8NTdySPvRgySacGfJrw@mail.gmail.com>
 <CANNd7=kiWEteCsrLhJVJnNTG4kKbQWtPKpdLS2aY+5JoHvfy-Q@mail.gmail.com>
 <CANNd7=mZQ-=C4AZyjZVCPSQo+Vnbnquvg9cob8WsTRwzvQkiuQ@mail.gmail.com>
 <CANNd7=nDEi9HFNo50v-feLqKeZaxSc=Z8EVzijYOBe+G+LM2mg@mail.gmail.com>
 <CANNd7==Dn9LyXERRCP-Y_zX9e=sZ7W7=qEfP2Z56T-X8Ls13xw@mail.gmail.com>
 <CANNd7=noWDAPjK2Kifa=5x+Wyf97h8hC25dbkus02Oow_jZFcA@mail.gmail.com>
 <CANNd7==PkTfcimVjnxXtwJOoOEk0uyiU0zFBGMuEtsYmz6ihGg@mail.gmail.com>
 <CANNd7=mbqTFyo3G9MFsZRUnN-Ocv50OcCXO3GtmuL49OE75kqQ@mail.gmail.com>
 <CANNd7=k6H5PSE-XXpvZO9txon1K6cprOmwrxoyu0Th+-Pc2eQg@mail.gmail.com>
 <CANNd7=mvLJ7PKL4cB=SGMJ2J=8uD9cOjivfab1CNW2NPrHafEw@mail.gmail.com>
 <CANNd7=mBkFQyTjjRiJPO+5_c9TNkLKAEh8hjkW29yMNNk3odsw@mail.gmail.com>
 <CANNd7=kbRSmxFr4aaUEys71sk4ei3gtubmoh62a5SDMtLN-MRA@mail.gmail.com>
 <CANNd7=nakiAPh=smK6FOp9VOXdUwdq3OuERyrh5tuk7LUsgu3g@mail.gmail.com>
 <CANNd7=mLLfEf-B7QUvLGw8GVO1B05srWa57EPNmWAdrtBMiRBw@mail.gmail.com>
 <CANNd7=kTA+CLbn0rogt3zXCZhpFOaSY5Cai5M0XFz5MoA0v0qA@mail.gmail.com>
 <CANNd7=kTdwwcisP39mAxhpiteLyiFoojAvkMjcp-+QBORZruWA@mail.gmail.com>
 <CANNd7=nc5HV_UqqdtyD_KYOYV2KL11xraZJrhuUOFQh8J1Cpkw@mail.gmail.com>
 <CANNd7=ko=y7nzR=7MSQ0GjyJpaz7SDutJUDH196VPSXpy3KY_g@mail.gmail.com>
 <CANNd7=kmWaozw9EMLDdCo_gm8bqAw3rR0JjuoVe=Fmx+y14+iw@mail.gmail.com>
 <CANNd7=mGPfvSBb5eRVjLw8zwRJ38=iogPWRM_H-mVb13wrqfYQ@mail.gmail.com>
 <CANNd7=kXC9YS-GxBGXETDyvecksSocacNpz1fxxyW3rPepLrMw@mail.gmail.com>
 <CANNd7=n2POaXz38y0dD8ZpuLCRi4sBhnGN1m9JCk24ciMsqBmw@mail.gmail.com>
 <CANNd7=kvhy5u4xXRT4XYH4-VT4tGtCrLVYUJxhbN+iqa17W7vA@mail.gmail.com>
 <CANNd7=ny=PxQbxeb1wYpmunMaR1KQcsY8ykCOUzK_m16PB_EWg@mail.gmail.com>
 <CANNd7=kHcZW5oYUPDM5nz-2p6UqYeOnZTgcDAbd5GHGFAenrvQ@mail.gmail.com>
 <CANNd7=mS7kh8Y_QYLGE4_a-Bm2r34Sr9vOX9txnrisUwjot-2g@mail.gmail.com>
 <CANNd7=nwEwLU8Rdti8_LDgKGegO6SgyvDxGpLfHhTKyzNi0+Uw@mail.gmail.com>
 <CANNd7=nge=B1HZEVq=JAn=4mwqHO0=AcPPwcc50-K1ZiCa=i8g@mail.gmail.com>
 <CANNd7=mPeU3Ww-nG6Nq75ZjF84GrCsVxmmWV05KTuQHL8cbx-A@mail.gmail.com>
 <CAOKDuOgHmT3FUEY=D6VPWwRk6O8G32BuetkQoL_ZTZCcZD1OGA@mail.gmail.com>
Message-ID: <CANNd7==R9FgT0aw5r59Ez3bF5u0Haj43WUE--qJWBCTpoUWviQ@mail.gmail.com>

I attach a basic State of Art:

##########################################################################################################################################
# State of Art Analysis of Git vs SVN
##########################################################################################################################################

Scopus Keywords: GIT AND SVN

##########################################################################################################################################
# 1. How Do Centralized (SVN) and Distributed Version Control (GIT) Systems
Impact Software Changes? (22 Citations; Published: 2014)
##########################################################################################################################################

1.1 Paper Conclusions

We found that the use of CVCS and DVCS have observable effects on
developers, teams and processes. The most surprising findings are that (i)
the size of commits in DVCS was smaller than in CVCS, (ii) developers split
commits (group changes by intent) more often in DVCS, and (iii) DVCS
commits are more likely to reference issue tracking labels. These show that
DVCS contain higher quality commits compared to CVCS due to their smaller
size, cohesive changes and the presence of issue tracking labels. The
survey provided valuable information on why developers prefer one paradigm
versus the other. DVCS are preferred because of killer features, such as
the ability of committing locally. In contrast CVCS are preferred for their
ease of use and faster learning curve.

1.2 Full Paper

http://dig.cs.illinois.edu/papers/ICSE14_Caius.pdf

##########################################################################################################################################
# 2 Version Control with Git (Book: J Loeliger, M McCullough ? 2012)
##########################################################################################################################################

2.1 Book Introduction

***The Birth of Git***

Often, when there is discord between a tool and a project, the developers
simply create a new tool. Indeed, in the world of software, the temptation
to create new tools can be deceptively easy and inviting. In the face of
many existing version control systems, the decision to create another
shouldn?t be made casually. However, given a critical need, a bit of
insight, and a healthy dose of motivation, forging a new tool can be
exactly the right course.

Git, affectionately termed ?the information manager from hell? by its
creator is such a tool. Although the precise circumstances and timing of
its genesis are shrouded in political wrangling within the Linux Kernel
community, there is no doubt that what came from that fire is a
well-engineered version control system capable of supporting worldwide
development of software on a large scale.

Prior to Git, the Linux Kernel was developed using the commercial BitKeeper
VCS, which provided sophisticated operations not available in then-current,
free software version control systems such as RCS and CVS. However, when
the company that owned BitKeeper placed additional restrictions on its
?free as in beer? version in the spring of 2005, the Linux community
realized that BitKeeper was no longer a viable solution.

Linus looked for alternatives. Eschewing commercial solutions, he studied
the free software packages but found the same limitations and flaws that
led him to reject them previously. What was wrong with the existing VCS
systems? What were the elusive missing features or characteristics that
Linus wanted and couldn?t find?

***Facilitate distributed development***

There are many facets to ?distributed development,? and Linus wanted a new
VCS that would cover most of them. It had to allow parallel as well as
independent and simultaneous development in private repositories without
the need for constant synchronization with a central repository, which
could form a development bottleneck. It had to allow multiple developers in
multiple locations even if some of them were offline temporarily.

***Scale to handle thousands of developers***

It isn?t enough just to have a distributed development model. Linus knew
that thousands of developers contribute to each Linux release, so any new
VCS had to handle a very large number of developers, whether they were
working on the same or on different parts of a common project. And the new
VCS had to be able to integrate all of their work reliably.

***Perform quickly and efficiently***

 Linus was determined to ensure that a new VCS was fast and efficient. In
order to support the sheer volume of update operations that would be made
on the Linux Kernel alone, he knew that both individual update operations
and network transfer operations would have to be very fast. To save space
and thus transfer time, compression and ?delta? techniques would be needed.
Using a distributed model instead of a centralized model also ensured that
network latency would not hinder daily development.

***Maintain integrity and trust***

Because Git is a distributed revision control system, it is vital to obtain
absolute assurance that data integrity is maintained and is not somehow
being altered. How do you know the data hasn?t been altered in transition
from one developer to the next, or from one repository to the next? For
that matter, how do you know that the data in a Git repository is even what
it purports to be?

Git uses a common cryptographic hash function, called Secure Hash Function
(SHA1), to name and identify objects within its database. Although perhaps
not absolute, in practice it has proven to be solid enough to ensure
integrity and trust for all of Git?s distributed repositories.

***Enforce accountability***

One of the key aspects of a version control system is knowing who changed
files, and if at all possible, why. Git enforces a change log on every
commit that changes a file. The information stored in that change log is
left up to the developer, project requirements, management, convention,
etc. Git ensures that changes will not happen mysteriously to files under
version control because there is an accountability trail for all changes.

***Immutability***

Git?s repository database contains data objects that are immutable. That
is, once they have been created and placed in the database, they cannot be
modified. They can be recreated differently, of course, but the original
data cannot be altered without consequences. The design of the Git database
means that the entire history stored within the version control database is
also immutable. Using immutable objects has several advantages, including
very quick comparison for equality.

***Atomic transactions***

With atomic transactions, a number of different but related changes are
performed either all together or not at all. This property ensures that the
version control database is not left in a partially changed (and hence
possibly corrupted) state while an update or commit is happening. Git
implements atomic transactions by recording complete, discrete repository
states that cannot be broken down into individual or smaller state changes.

***Support and encourage branched development***

Almost all VCSs can name different genealogies of development within a
single project. For instance, one sequence of code changes could be called
?development? while another is referred to as ?test.? Each version control
system can also split a single line of development into multiple lines and
then unify, or merge, the disparate threads. As with most VCSs, Git calls a
line of development a branch and assigns each branch a name.

Along with branching comes merging. Just as Linus wanted easy branching to
foster alternate lines of development, he also wanted to facilitate easy
merging of those branches. Because branch merging has often been a painful
and difficult operation in version control systems, it would be essential
to support clean, fast, easy merging.

***Complete repositories***

So that individual developers needn?t query a centralized repository server
for historical revision information, it was essential that each repository
have a complete copy of all historical revisions of every file.

***A clean internal design***

Even though end users might not be concerned about a clean internal design,
it was important to Linus and ultimately to other Git developers as well.
Git?s object model has simple structures that capture fundamental concepts
for raw data, directory structure, recording changes, etc. Coupling the
object model with a globally unique identifier technique allowed a very
clean data model that could be managed in a distributed development
environment.

***Be free, as in freedom***

 ?Nuff said.

Given a clean slate to create a new VCS, many talented software engineers
collaborated and Git was born. Necessity was the mother of invention again!

1.2.2        Book Link

https://books.google.es/books?hl=en&lr=&id=aM7-Oxo3qdQC&oi=fnd&pg=PR3&dq=GIT+SVN&ots=39uhIKPlpc&sig=PmxABWMem-h4Fp1-JR-4C2HTwUY&redir_esc=y#v=onepage&q=GIT%20SVN&f=false

Chapter 18: ?Using Git with Subversion Repositories?, is of special
interest.

You can find the full book accessible with a basic search in Google:

?Version Control with Git? filetype:pdf

Juan

	[[alternative HTML version deleted]]



[Rd] Community Feedback: Git Repository for R-Devel
Juan Telleria