Skip to content

[Question] Poll on Git status  #1201

Open
@cyn0

Description

@cyn0

HI,
We are using Git Jupyterlab extension on a directory mounted by S3-fuse. Poll on status api triggers git diff --numstat -z --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 exec which in triggers burst of s3 API requests.

Question:
Why we do need to compare current stage with empty tree (from using --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904) to render the diff in the extension UI? I modified the plugin to use git diff --numstat -z (which doesnt trigger too many S3 requests) and I see that same information in the extension as before. I am interested in use-cases that would require us to compare current stage with empty tree.

Thanks a lot for your help in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions