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 |
|
HouXiaoxuan
|
0688ffc46c
|
对restore的理解和实验
|
2023-12-22 09:41:53 +08:00 |
|
HouXiaoxuan
|
5c439aeff2
|
重新format,对use进行排序
|
2023-12-22 09:03:51 +08:00 |
|
HouXiaoxuan
|
758cc334eb
|
format use rustfmt nightly
|
2023-12-22 08:41:56 +08:00 |
|
HouXiaoxuan
|
80ab4c1052
|
清除警告
|
2023-12-22 03:38:04 +08:00 |
|
HouXiaoxuan
|
b0172211a0
|
使用switch+restore替代checkout
|
2023-12-22 03:34:58 +08:00 |
|
HouXiaoxuan
|
f48585a380
|
update readme
|
2023-12-22 02:10:06 +08:00 |
|
HouXiaoxuan
|
5fb6667914
|
使用共用的no_change函数
|
2023-12-22 01:53:05 +08:00 |
|
HouXiaoxuan
|
c61cc619ef
|
git branch实现&测试,show类型需要结合checkout测试
|
2023-12-22 01:49:55 +08:00 |
|
HouXiaoxuan
|
df39d1e71b
|
store 搜索能力
|
2023-12-22 01:49:55 +08:00 |
|
mrbeanc
|
5f1d115658
|
实现:status命令
TODO:add 不存在的文件报错
|
2023-12-22 00:11:04 +08:00 |
|
HouXiaoxuan
|
f9e7ef493a
|
git log实现与测试
|
2023-12-21 23:01:49 +08:00 |
|
HouXiaoxuan
|
a8707149a9
|
优化commit第一次提交,parent为空而不是“”
|
2023-12-21 23:01:49 +08:00 |
|
HouXiaoxuan
|
2a04d7454b
|
mv rustfmt.toml
|
2023-12-21 23:01:13 +08:00 |
|
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 |
|