Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when overwriting a newer file on the org #19

Open
chasd00 opened this issue Oct 12, 2015 · 3 comments
Open

Warn when overwriting a newer file on the org #19

chasd00 opened this issue Oct 12, 2015 · 3 comments

Comments

@chasd00
Copy link

chasd00 commented Oct 12, 2015

It would be useful to get a warning if the file on the server is newer than the local file when pushing. Overwriting someone else's work is a very easy mistake to make.

@dcarroll
Copy link
Owner

Good idea. I'll see what I can do.

@dcarroll
Copy link
Owner

I don't think the file on the server will ever be newer than the file being pushed. I would need to keep track of more data about the files. When fetching a file I would need to save the SystemModStamp somewhere, then before saving I would need to query the file to get the SystemModStamp for comparison. Doable, but not trivial.

@chasd00
Copy link
Author

chasd00 commented Oct 13, 2015

thanks for the quick response, I'll keep thinking about it too. I wonder if
a local git repo could help where before every push a fetch and merge is
done. idk, just thinking out loud

On Mon, Oct 12, 2015 at 5:17 PM, Dave Carroll [email protected]
wrote:

I don't think the file on the server will ever be newer than the file
being pushed. I would need to keep track of more data about the files. When
fetching a file I would need to save the SystemModStamp somewhere, then
before saving I would need to query the file to get the SystemModStamp for
comparison. Doable, but not trivial.


Reply to this email directly or view it on GitHub
#19 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants