HouXiaoxuan
|
263cd36acc
|
fix path 跨系统不一致
0.2.0
|
2023-12-24 21:32:21 +08:00 |
|
mrbeanc
|
ee4ab06da3
|
完善restore逻辑,默认从index恢复(若没有--source且没有--staged)
|
2023-12-24 18:01:15 +08:00 |
|
mrbeanc
|
465047b3ea
|
fix: 用status重构add,正确处理文件夹中被删除的文件
|
2023-12-24 13:23:07 +08:00 |
|
mrbeanc
|
7015c9b90a
|
fix: 修复get_relative_path()不能处理上级目录文件的bug,如[../a.txt]
|
2023-12-24 13:21:46 +08:00 |
|
mrbeanc
|
07dfd24d32
|
fix: status命令对当前目录进行过滤 & 改进util泛型模板
|
2023-12-24 11:46:07 +08:00 |
|
mrbeanc
|
3272b793da
|
fix: restore删除文件时,级联检查删除空文件夹(除了当前目录)
|
2023-12-24 00:30:02 +08:00 |
|
mrbeanc
|
f61f2627ee
|
fix: 完善to_workdir_absolute_path()
|
2023-12-23 22:33:07 +08:00 |
|
HouXiaoxuan
|
056f177ec2
|
update readme
|
2023-12-23 22:25:06 +08:00 |
|
HouXiaoxuan
|
07b54fba15
|
版本一小步
|
2023-12-23 22:17:45 +08:00 |
|
HouXiaoxuan
|
b918290c79
|
add test(part)
|
2023-12-23 22:16:27 +08:00 |
|
HouXiaoxuan
|
2a16e577be
|
fix 无commit时出错
|
2023-12-23 22:16:16 +08:00 |
|
HouXiaoxuan
|
9d5fe4bfe2
|
fix 会无意间删掉.mit
|
2023-12-23 22:15:51 +08:00 |
|
HouXiaoxuan
|
3017fe9a95
|
add util subpath工具
|
2023-12-23 22:14:42 +08:00 |
|
HouXiaoxuan
|
e82b5f8c29
|
处理空目录删除
|
2023-12-23 21:14:22 +08:00 |
|
HouXiaoxuan
|
4bb2831857
|
fix restore文件不会新建目录
|
2023-12-23 20:52:44 +08:00 |
|
HouXiaoxuan
|
da45202882
|
fix stack overflow 纠正tree代码逻辑
|
2023-12-23 20:52:25 +08:00 |
|
mrbeanc
|
655224e1cb
|
优化:小重构restore 提升可读性
|
2023-12-23 20:12:33 +08:00 |
|
HouXiaoxuan
|
9cbe0a5031
|
TODO
|
2023-12-23 19:21:51 +08:00 |
|
mrbeanc
|
028a044ad5
|
fix: is_dir依赖文件存在性,在restore中删除使用
|
2023-12-23 18:25:23 +08:00 |
|
HouXiaoxuan
|
a8977c8e33
|
merge test
|
2023-12-23 17:56:51 +08:00 |
|
mrbeanc
|
c975d02ef0
|
fix: 修正restore_index()行为,从index筛选文件而非工作区
|
2023-12-23 17:48:11 +08:00 |
|
HouXiaoxuan
|
01206ac88e
|
format影响
|
2023-12-23 17:43:16 +08:00 |
|
HouXiaoxuan
|
8c68032c0e
|
switch_test清空
|
2023-12-23 17:43:08 +08:00 |
|
mrbeanc
|
d4009cd2cf
|
基本实现restore命令
|
2023-12-23 16:11:54 +08:00 |
|
HouXiaoxuan
|
282b3556d1
|
tree生成该用index参数
|
2023-12-23 16:01:18 +08:00 |
|
HouXiaoxuan
|
174e139508
|
增加clran检查
|
2023-12-23 15:49:01 +08:00 |
|
HouXiaoxuan
|
04b82f1aa6
|
merge ff 未测试
|
2023-12-23 15:43:05 +08:00 |
|
mrbeanc
|
41a17634b7
|
fix: 重构restore_worktree()逻辑,正确恢复dir中[已删除文件]
|
2023-12-23 12:52:21 +08:00 |
|
mrbeanc
|
319f15cb31
|
fix: 修正一些路径统一问题
|
2023-12-23 12:45:26 +08:00 |
|
HouXiaoxuan
|
b67fde9381
|
all test pass
|
2023-12-23 10:44:49 +08:00 |
|
HouXiaoxuan
|
f944ce9182
|
add util::ensure_no_file
|
2023-12-23 10:44:49 +08:00 |
|
HouXiaoxuan
|
c8b45c0b83
|
去除setup_with_mit,使用clarm_mit代替
|
2023-12-23 10:44:49 +08:00 |
|
HouXiaoxuan
|
055dc49f52
|
Revert "setup_test_with_clean_mit() 会清理文件"
This reverts commit 13aa7452de.
|
2023-12-23 10:44:49 +08:00 |
|
mrbeanc
|
f8da30b7d8
|
test-fix: test_commit() & test_read()
|
2023-12-23 10:40:11 +08:00 |
|
HouXiaoxuan
|
fd7a2e38a7
|
switch test(暂时无法运行)
|
2023-12-23 10:13:18 +08:00 |
|
HouXiaoxuan
|
13aa7452de
|
setup_test_with_clean_mit() 会清理文件
|
2023-12-23 10:12:58 +08:00 |
|
HouXiaoxuan
|
90013cfce9
|
TODO
|
2023-12-23 08:20:52 +08:00 |
|
mrbeanc
|
7f21286e66
|
todo
|
2023-12-23 00:50:21 +08:00 |
|
mrbeanc
|
6d6fdd8bf2
|
fix: restore_worktree()路径问题
|
2023-12-23 00:37:41 +08:00 |
|
mrbeanc
|
ce2251fff6
|
test-fix: 修正测试中的问题
|
2023-12-22 23:50:23 +08:00 |
|
mrbeanc
|
1e16179e0a
|
restore: 实现restore_worktree()
|
2023-12-22 21:02:22 +08:00 |
|
mrbeanc
|
d719cc43da
|
fix: 修复restore命令中,staged & source短名称冲突问题
|
2023-12-22 21:00:39 +08:00 |
|
mrbeanc
|
b9b8d9c704
|
fix: 修复add命令检测workdir(而非curDir)中deleted files的问题
|
2023-12-22 14:49:52 +08:00 |
|
mrbeanc
|
49a7220ad8
|
手动实现相对路径->绝对路径,解决add不存在文件panic问题
|
2023-12-22 14:39:41 +08:00 |
|
HouXiaoxuan
|
451dbd9d01
|
去除不必要参数
|
2023-12-22 13:24:10 +08:00 |
|
HouXiaoxuan
|
0ab07cc4c4
|
增加hash类型判断
|
2023-12-22 13:23:10 +08:00 |
|
HouXiaoxuan
|
7b91fad41f
|
fix type error
|
2023-12-22 11:08:26 +08:00 |
|
HouXiaoxuan
|
fd415fe02b
|
restore的基本代码框架
|
2023-12-22 11:07:36 +08:00 |
|
HouXiaoxuan
|
05368f67b6
|
switch的基本代码框架
|
2023-12-22 11:07:28 +08:00 |
|
HouXiaoxuan
|
9fc8948cf7
|
对switch的设计和理解
|
2023-12-22 09:57:07 +08:00 |
|