Class DirCacheEditor.DeletePath

    • Constructor Summary

      Constructors 
      Constructor Description
      DeletePath​(java.lang.String entryPath)
      Create a new deletion command by path name.
      DeletePath​(DirCacheEntry ent)
      Create a new deletion command for an existing entry instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(DirCacheEntry ent)
      Apply the update to a single cache entry matching the path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeletePath

        public DeletePath​(java.lang.String entryPath)
        Create a new deletion command by path name.
        Parameters:
        entryPath - path of the file within the repository.
      • DeletePath

        public DeletePath​(DirCacheEntry ent)
        Create a new deletion command for an existing entry instance.
        Parameters:
        ent - entry instance to remove. Only the path of this entry is actually considered during command evaluation.
    • Method Detail

      • apply

        public void apply​(DirCacheEntry ent)
        Description copied from class: DirCacheEditor.PathEdit
        Apply the update to a single cache entry matching the path.

        After apply is invoked the entry is added to the output table, and will be included in the new index.

        Specified by:
        apply in class DirCacheEditor.PathEdit
        Parameters:
        ent - the entry being processed. All fields are zeroed out if the path is a new path in the index.