MCPcopy Create free account
hub / github.com/ezyang/ghstack / _warn_empty

Method _warn_empty

src/ghstack/submit.py:1062–1068  ·  view source on GitHub ↗
(
        self, diff: ghstack.diff.Diff, elab_diff: Optional[DiffWithGitHubMetadata]
    )

Source from the content-addressed store, hash-verified

1060 )
1061
1062 def _warn_empty(
1063 self, diff: ghstack.diff.Diff, elab_diff: Optional[DiffWithGitHubMetadata]
1064 ) -> None:
1065 self.ignored_diffs.append((diff, elab_diff))
1066 logging.warning(
1067 "Skipping '{}', as the commit now has no changes".format(diff.title)
1068 )
1069
1070 def _allocate_ghnum(self) -> GhNumber:
1071 # Determine the next available GhNumber. We do this by

Callers 1

process_commitMethod · 0.95

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected