public Gist addGist(Gist gist) {
        Gist current = getGist(gist.id());
        if (current != null && current.equals(gist)) {
            return current;
        }

        gist = gist.toBuilder()
                .files(sortFiles(gist))
                .build();
        gists.put(gist.id(), gist);
        return gist;
    }
Add gist to store

@param gist
@return gist
app/src/main/java/com/github/pockethub/android/core/gist/GistStore.java