tinacms/tinacms
public

Tinacms

A fully open-source headless CMS that supports Markdown and Visual Editing

rss

Method on the deprecated GitFile class (PR #5715). Reads the file at HEAD through the legacy GitClient REST endpoints, which are being removed alongside the class.

411d until removal

deprecated June 9, 2025removal June 9, 2027
/**
 * Load the contents of this file at HEAD
 *
 * @deprecated
 */
show = () => {
  return this.git.show(this.relativePath).then((git: { content: string }) => {
    return this.parse(git.content);
  });
};

Query the document via the TinaCMS GraphQL client (client.queries.<collection>(...)).

  • JackDevAUJackDevAUadded packages/tinacms/src/toolkit/git-client/git-file.ts3h ago