Commit Graph

75 Commits

Author SHA1 Message Date
HouXiaoxuan
d116f4b2ff 精简优化 2023-12-21 23:01:13 +08:00
HouXiaoxuan
83f3f3890c commit 增加时间戳 2023-12-21 23:01:13 +08:00
mrbeanc
d67644eb9c 新增:add命令检测file在repo外或在.mit内 2023-12-21 21:48:07 +08:00
mrbeanc
737917e421 rustfmt: max-width=120 2023-12-21 20:54:12 +08:00
mrbeanc
a2e9072951 统一format格式(rustfmt) 2023-12-21 20:44:15 +08:00
HouXiaoxuan
af194c3c2c 消除警告 2023-12-21 19:20:34 +08:00
HouXiaoxuan
526210b1db 解决TODO&创建TODO 2023-12-21 19:15:43 +08:00
HouXiaoxuan
c54f7896f4 精简测试直接使用command 2023-12-21 19:10:19 +08:00
HouXiaoxuan
c0cb618f4f 类型修改 2023-12-21 19:04:47 +08:00
HouXiaoxuan
72b6f65c83 优化commit显示 2023-12-21 18:45:15 +08:00
mrbeanc
c812957a80 实现rm(--cached &| -r) 2023-12-21 17:18:41 +08:00
mrbeanc
ffefd7f981 实现Index析构自动保存:Drop for Index 2023-12-21 17:12:03 +08:00
mrbeanc
1d6e648120 优化changes_to_be_committed() 2023-12-21 15:42:30 +08:00
mrbeanc
05101c98ef fix: 修正get_tracked_files(),不需要判断文件是否存在于磁盘 2023-12-21 15:18:23 +08:00
mrbeanc
a459a0922e fix:去除current_head()返回值中的\n
\n会导致文件写入失败
2023-12-21 14:25:40 +08:00
HouXiaoxuan
2dc58245e7 完整实现commit 2023-12-21 03:48:28 +08:00
HouXiaoxuan
ef6fc1e115 status的一种实现完成 2023-12-21 03:45:35 +08:00
HouXiaoxuan
0c154163ed status 实现一半 2023-12-21 03:20:04 +08:00
HouXiaoxuan
ea9592d152 get函数 2023-12-21 03:16:33 +08:00
HouXiaoxuan
3ff052c105 从树中获取entries 2023-12-21 02:27:55 +08:00
HouXiaoxuan
ba7797ece1 commit操作初版完成 2023-12-21 02:14:59 +08:00
HouXiaoxuan
b560a3f302 修改函数接口 2023-12-21 02:03:12 +08:00
HouXiaoxuan
500a1de45c 优化panic 2023-12-21 01:48:37 +08:00
HouXiaoxuan
9feddad8ef tree save&load 2023-12-21 01:39:45 +08:00
HouXiaoxuan
94c2cadf72 增加测试工具函数ensure_test_file 2023-12-21 01:39:26 +08:00
HouXiaoxuan
85917e1be4 增加一个路径查找的兜底 2023-12-21 00:03:25 +08:00
HouXiaoxuan
0c82e91a4b 彩色panic信息 2023-12-20 23:25:54 +08:00
mrbeanc
a573ede3a6 优化add命令输出 2023-12-20 22:18:30 +08:00
mrbeanc
162313b7bc Index:在成员函数中对传入的path进行预处理,统一路径形式(absolute) 2023-12-20 21:28:55 +08:00
mrbeanc
02a27b4327 实现Index::load() 2023-12-20 21:02:13 +08:00
mrbeanc
16ee60339d 完善Index::save逻辑 2023-12-20 18:29:48 +08:00
mrbeanc
ffac740f97 处理Windows下绝对路径转换产生的"\\\\?\\"前缀 2023-12-20 16:37:55 +08:00
mrbeanc
2255cdaf09 将序列化中[to_string]改为[to_string_pretty]进行格式化,改善显示效果 2023-12-20 13:13:12 +08:00
mrbeanc
642f8b2cff 新增setup_test_with_clean_mit()用于获取干净的mit目录(空仓库) 2023-12-20 13:11:58 +08:00
mrbeanc
5d5187a91c 优化add逻辑 2023-12-20 11:58:40 +08:00
HouXiaoxuan
ee0360fa66 todo 2023-12-20 02:11:45 +08:00
HouXiaoxuan
cb2a8eb9d0 未测试的commit 2023-12-20 02:11:01 +08:00
HouXiaoxuan
37c030aa83 format&去掉一个警告 2023-12-20 02:10:32 +08:00
HouXiaoxuan
7871cb7c47 增加head操作 2023-12-20 02:07:11 +08:00
HouXiaoxuan
9c7dee7521 heads文件操作 2023-12-20 01:45:33 +08:00
HouXiaoxuan
1b42e53884 TODO,需要等待Index实现 2023-12-20 01:08:25 +08:00
HouXiaoxuan
c9726e3f11 format 2023-12-20 01:08:15 +08:00
HouXiaoxuan
38e448cc75 添加tree依赖的函数,有待修改 2023-12-20 01:08:04 +08:00
HouXiaoxuan
c034120dfd tree save&load 未完成 2023-12-20 00:01:58 +08:00
HouXiaoxuan
d61b2f57e2 commit save&load 2023-12-20 00:01:58 +08:00
mrbeanc
6780be2e02 完善add逻辑 2023-12-19 23:57:11 +08:00
HouXiaoxuan
6616e98109 todo 2023-12-19 23:11:42 +08:00
HouXiaoxuan
3d552014c2 load&save for Blob 2023-12-19 22:22:05 +08:00
HouXiaoxuan
26f3c84535 测试路径工具 2023-12-19 22:09:01 +08:00
mrbeanc
5d7e0585bb 临时提交:add & index & blob 2023-12-19 21:03:47 +08:00