Home | History | Annotate | Download | only in git

Lines Matching refs:to_path

43 def MakeDestinationPath(from_path, to_path):
53 if os.path.isdir(to_path):
54 to_path = os.path.join(to_path, os.path.basename(from_path))
56 dest_extension = os.path.splitext(to_path)[1]
60 return to_path
63 def MoveFile(from_path, to_path):
64 """Performs a git mv command to move a file from |from_path| to |to_path|.
66 if not os.system('git mv %s %s' % (from_path, to_path)) == 0:
70 def UpdatePostMove(from_path, to_path):
71 """Given a file that has moved from |from_path| to |to_path|,
78 to_path = to_path.replace('\\', '/')
81 UpdateIncludeGuard(from_path, to_path)
86 r'\1%s\3' % to_path,
102 r'\1%s' % to_path,
115 r'\1%s\2' % PathMinusFirstComponent(to_path),
157 parser = optparse.OptionParser(usage='%prog FROM_PATH... TO_PATH')
186 to_path = MakeDestinationPath(from_path, orig_to_path)
188 MoveFile(from_path, to_path)
189 UpdatePostMove(from_path, to_path)