Generate an empty commit for the newly created patches
authorCatalin Marinas <catalin.marinas@gmail.com>
Sun, 11 Jun 2006 12:12:30 +0000 (13:12 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sun, 11 Jun 2006 12:12:30 +0000 (13:12 +0100)
This way, 'stg show' will no longer display the previous patch.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/stack.py

index 49b50e7..0217a7f 100644 (file)
@@ -712,6 +712,8 @@ class Series:
                 append_string(self.__applied_file, patch.get_name())
                 self.__set_current(name)
 
+                self.refresh_patch(cache_update = False)
+
     def delete_patch(self, name):
         """Deletes a patch
         """