Re: Modifying a bare repo directly

2017-04-11 Thread Jeff King
On Tue, Apr 11, 2017 at 10:35:17PM +0100, Julian Goacher wrote: > Thanks for the replies; is there anything that needs to be known about > concurrent updates on a repo when using plumbing commands? Concurrent writes to the object database are always safe (so hash-object, write-tree, commit-tree a

Re: Modifying a bare repo directly

2017-04-11 Thread Julian Goacher
Thanks for the replies; is there anything that needs to be known about concurrent updates on a repo when using plumbing commands? On 10 April 2017 at 19:22, Eric Wong wrote: > Julian Goacher wrote: >> Is it possible to modify a bare repo directly? e.g. is it possible to >> insert a file into a b

Re: Modifying a bare repo directly

2017-04-10 Thread Eric Wong
Julian Goacher wrote: > Is it possible to modify a bare repo directly? e.g. is it possible to > insert a file into a bare repo without first cloning a non-bare copy? > I'm thinking along the lines of a command or sequence of commands that > modifies the file index and then copies the file blob int

Re: Modifying a bare repo directly

2017-04-10 Thread Jeff King
On Mon, Apr 10, 2017 at 12:33:18PM +0200, Ævar Arnfjörð Bjarmason wrote: > On Mon, Apr 10, 2017 at 12:09 PM, Julian Goacher > wrote: > > Hi - > > > > Is it possible to modify a bare repo directly? e.g. is it possible to > > insert a file into a bare repo without first cloning a non-bare copy? > >

Re: Modifying a bare repo directly

2017-04-10 Thread Ævar Arnfjörð Bjarmason
On Mon, Apr 10, 2017 at 12:09 PM, Julian Goacher wrote: > Hi - > > Is it possible to modify a bare repo directly? e.g. is it possible to > insert a file into a bare repo without first cloning a non-bare copy? > I'm thinking along the lines of a command or sequence of commands that > modifies the f

Modifying a bare repo directly

2017-04-10 Thread Julian Goacher
Hi - Is it possible to modify a bare repo directly? e.g. is it possible to insert a file into a bare repo without first cloning a non-bare copy? I'm thinking along the lines of a command or sequence of commands that modifies the file index and then copies the file blob into /objects, but in a situ