git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 6/6] git p4: remove unneeded cmd initialization

From
PWPete Wyckoff <pw@padd.com>
Date
Nov 23, 2012, 22:35 UTC
Message-ID
<1353710139-16207-7-git-send-email-pw@padd.com>
In-Reply-To
<1353710139-16207-1-git-send-email-pw@padd.com>
It confuses pylint, and is never needed.
Signed-off-by: Pete Wyckoff <pw@padd.com>
---
 git-p4.py | 1 -
 1 file changed, 1 deletion(-)
diff --git a/git-p4.py b/git-p4.py
index 9712082..551aec9 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3188,7 +3188,6 @@ def main():
         printUsage(commands.keys())
         sys.exit(2)
 
-    cmd = ""
     cmdName = sys.argv[1]
     try:
         klass = commands[cmdName]
-- 
1.8.0.276.gd9397fc
Previous: Pete Wyckoff
Message 7 of 7 in “git p4 error handling”
  1. 0/6 git p4 error handlingPete Wyckoff, Nov 23, 2012
  2. 1/6 git p4: catch p4 describe errorsPete Wyckoff, Nov 23, 2012
  3. 2/6 git p4: handle servers without move supportPete Wyckoff, Nov 23, 2012
  4. 3/6 git p4: catch p4 errors when streaming file contentsPete Wyckoff, Nov 23, 2012
  5. 4/6 git p4 test: display unresolvable host errorPete Wyckoff, Nov 23, 2012
  6. 5/6 git p4: fix labelDetails typo in exceptionPete Wyckoff, Nov 23, 2012
  7. 6/6 git p4: remove unneeded cmd initializationPete Wyckoff, Nov 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.