瀏覽代碼

Document dulwich.porcelain functions by their Python identi… (#1520)

Document functions in dulwich.porcelain by their Python identifiers
(such as "remote_add", using underscores), rather than the identifiers
of the git commands they mimic (such as "ls-tree", using hyphens).

Previously, some used one and some used the other.
Jelmer Vernooij 5 天之前
父節點
當前提交
50df0ca4ff
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12 12
      dulwich/porcelain.py

+ 12 - 12
dulwich/porcelain.py

@@ -25,37 +25,37 @@ Currently implemented:
  * archive
  * archive
  * add
  * add
  * branch{_create,_delete,_list}
  * branch{_create,_delete,_list}
- * check-ignore
+ * check_ignore
  * checkout_branch
  * checkout_branch
  * clone
  * clone
  * cone mode{_init, _set, _add}
  * cone mode{_init, _set, _add}
  * commit
  * commit
- * commit-tree
+ * commit_tree
  * daemon
  * daemon
  * describe
  * describe
- * diff-tree
+ * diff_tree
  * fetch
  * fetch
- * for-each-ref
+ * for_each_ref
  * init
  * init
- * ls-files
- * ls-remote
- * ls-tree
+ * ls_files
+ * ls_remote
+ * ls_tree
  * pull
  * pull
  * push
  * push
  * rm
  * rm
  * remote{_add}
  * remote{_add}
- * receive-pack
+ * receive_pack
  * reset
  * reset
  * sparse_checkout
  * sparse_checkout
  * submodule_add
  * submodule_add
  * submodule_init
  * submodule_init
  * submodule_list
  * submodule_list
- * rev-list
+ * rev_list
  * tag{_create,_delete,_list}
  * tag{_create,_delete,_list}
- * upload-pack
- * update-server-info
+ * upload_pack
+ * update_server_info
  * status
  * status
- * symbolic-ref
+ * symbolic_ref
 
 
 These functions are meant to behave similarly to the git subcommands.
 These functions are meant to behave similarly to the git subcommands.
 Differences in behaviour are considered bugs.
 Differences in behaviour are considered bugs.