Browse Source

close #2: for "git add" assume "." if no other arguments were passed

bmallred 11 years ago
parent
commit
3890086ccb
2 changed files with 5 additions and 0 deletions
  1. 0 0
      code.py
  2. 5 0
      extensions/add.py

+ 0 - 0
code.py


+ 5 - 0
extensions/add.py

7
    '''
7
    '''
8
    
8
    
9
    if isGit():
9
    if isGit():
10
        # If no additional arguments were passed assume
11
        # we want to add all pending changes.
12
        if len(arguments) == 0:
13
            arguments.append(".")
14
10
        command = ["git", "add"]
15
        command = ["git", "add"]
11
        command.extend(arguments)
16
        command.extend(arguments)
12
        executeCommand(command)
17
        executeCommand(command)