"use strict";
/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.VcsGitAdHoc = void 0;
const gitUtils_1 = require("./gitUtils");
/**
 * A VCS strategy to query Git information in an ad-hoc way.
 * This is the default/historical Docusaurus Git VCS implementation.
 * Unfortunately, it is a major bottleneck for large sites/repositories.
 *
 * See also https://github.com/facebook/docusaurus/issues/11208
 */
exports.VcsGitAdHoc = {
    initialize: () => {
        // Nothing to do here for the default/historical Git implementation
    },
    getFileCreationInfo: async (filePath) => {
        return (0, gitUtils_1.getGitCreation)(filePath);
    },
    getFileLastUpdateInfo: async (filePath) => {
        return (0, gitUtils_1.getGitLastUpdate)(filePath);
    },
};
//# sourceMappingURL=vcsGitAdHoc.js.map