git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* FTP Synchronization
@ 2009-06-11  0:03 Marc Weber
  0 siblings, 0 replies; only message in thread
From: Marc Weber @ 2009-06-11  0:03 UTC (permalink / raw)
  To: Git Mailing List

Has anyone a FTP synchranization which behaves like this yet?

1) get current version from ftp by readitg $REMOTE/hash
2) calculate git-diff `ftp get $REMOTE/hash`..HEAD
3) ftp push all files which have changed and
   ftp rm all files which have been deleted
4) write HEAD to $REMOTE/hash

What happens if there is a failure in the middle?
Then 4) doesn't take place and all the actions will be replayed
(probably ignoring errors). Also there should be a sync option recopying
all files which are know to git at HEAD.

I don't want to use bash because I can't keep a FTP connection open, can
I? (Maybe using lfpt and stdin redirection hacks ?)
git perl lib support is better than python support, right?

If not how to do this? Maybe I should look at the git diff code to get
to know or start comparing the git ls-tree output or such?

Of course I'd like this to be as fast as possible.

Marc Weber

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-11  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11  0:03 FTP Synchronization Marc Weber

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).