pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
292 stars 45 forks source link

Skip unmodified files #55

Closed aistis- closed 9 years ago

aistis- commented 9 years ago

Hello, it would be a nice feature to have unmodified files skipping. What do you thing, guys? I mean untracked files by git.

pancakeapp commented 9 years ago

The problem is that because they're untracked, you can't know if they've been modified. I guess one thing we could do is tweak the REVISION file so that it contains the hashes and filenames of all tracked files, so we can just use that to compare with what's being deployed, and skip unmodified files like that.

aistis- commented 9 years ago

Is it possible to get a remote file's checksum without download it? That way it could be simply compared with a local checksum and uploaded if different.

pancakeapp commented 9 years ago

No, that's why I said we can store the checksums in the REVISION file which is stored on the server, and then we download that file and use the checksums to compare. That would be easy to do.