code: def update(self, repo_dir, **kwargs):
          
          del kwargs
          rev = self._args.get("revision")
          if rev:
              return [{"args": ["git", "checkout", rev], "cwd": repo_dir}] + _ff_command(
                  rev, repo_dir
              )
          return None
docs: This function updates an existing checkout of source code.