Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
smd1121 committed Jan 4, 2024
1 parent 3a9a62a commit 5147f5c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions xgit/commands/update_index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import Optional

from typer import Option, Argument
from typing_extensions import Annotated

from xgit.types.index import Index, get_index, print_bytes


def update_index(
file: Annotated[Optional[str], Argument(help="要处理的文件")] = None,
add: Annotated[bool, Option("--add", help="将文件加入暂存区")] = False,
rm: Annotated[bool, Option("--rm", help="将文件从暂存区移除")] = False,
):
index = get_index()

0 comments on commit 5147f5c

Please sign in to comment.