chiark / gitweb /
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 49b50e7bf581b11a55e25c0c5f6e656b915baf7a..0217a7fbe06b6dae47992a787f5f6b6061bb35a7 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
         """