Re: Tracability in git commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Purdie <rpurdie@xxxxxxxxx> writes:

> Assuming a shared server using something like gitosis each set of
> commits is made under a certain ssh ID and what I'd like is to be able
> to validate that against the commits so we could tell that commits A-D
> were made by ID Z.

First of all, you need to learn the differences between making commits and
updating remote repositories.  Push does not create commits, it only
propagates a new part of commit DAG created elsewhere.

When you grant rights to a person to update the tip of a branch of a
repository, you are saying that you trust the person to advance the
history recorded on that branch in a way that is compatible with the goal
of the branch of your repository.

Whether you like it or not, git is a distributed system and git does not
care how that other person came up with the new part of the history.  The
person may find somebody else's work that is useful and apply patches to
his history (introducing commits whose authors are not himself), or merge
it (introducing commits whose committer are not himself), but you trust
that the person who does so uses good judgement, the same good judgement
he uses when making changes on his own.

And then the branch you granted the right to update its tip to that person
is updated, using that added part of the history.  The updates to the tip
will be recorded in reflog to record who updated the tip and when, which
would allow you to go back and point your finger at the person who
introduced problematic new history and at that point you really do not
care if the problem you have with the new history was due to faulty
commits the pusher made himself, was introduced by a merge the pusher did,
or was applied by the pusher from his mailbox.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux