eric6/Plugins/VcsPlugins/vcsGit/git.py

changeset 8234
fcb6b4b96274
parent 8222
5994b80b8760
child 8240
93b8a353c4bf
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
770 being edited and has unsaved modification, they can be saved or the 770 being edited and has unsaved modification, they can be saved or the
771 operation may be aborted. 771 operation may be aborted.
772 772
773 @param name file/directory name to be diffed (string) 773 @param name file/directory name to be diffed (string)
774 """ 774 """
775 if isinstance(name, list): 775 names = name[:] if isinstance(name, list) else [name]
776 names = name[:]
777 else:
778 names = [name]
779 for nam in names: 776 for nam in names:
780 if os.path.isfile(nam): 777 if os.path.isfile(nam):
781 editor = e5App().getObject("ViewManager").getOpenEditor(nam) 778 editor = e5App().getObject("ViewManager").getOpenEditor(nam)
782 if editor and not editor.checkDirty(): 779 if editor and not editor.checkDirty():
783 return 780 return

eric ide

mercurial