summaryrefslogtreecommitdiffstats
path: root/ReleaseNotes
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2015-06-10 17:18:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-10 20:57:13 -0700
commit971f1c66742508161c023623aef260d9b777f55c (patch)
tree3adf5ebc1fea996bcead92a2dfb691510a445d0b /ReleaseNotes
parent1379f3479278b4a7c6de1ada9e21161d2117c210 (diff)
downloadsubsurface-971f1c66742508161c023623aef260d9b777f55c.tar.gz
git storage: re-organize code to make 'origin' remote more widely available
I'm going to try to update the remote if the local cache is more recent when we fetch the data, which requires access to the remote over a wider range of code. This re-organizes the code so that we can free the remote later without having to have nasty error handling. We avoid the whole "if an error happened, free the remote and return" by creating helper functions and freeing the remote in the caller, so that all paths end up freeing it naturally. NOTE! We want to try to update the remote when we save the local cache too, so this whole "update remote when opening it" is incomplete. But (a) we do want to do it here as well and (b) this is the easiest place to create the initial "push to remote" code without any new "sync with cloud" interfaces. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'ReleaseNotes')
0 files changed, 0 insertions, 0 deletions