Commit Graph

37 Commits

Author SHA1 Message Date
HouXiaoxuan
80ab4c1052 清除警告 2023-12-22 03:38:04 +08:00
HouXiaoxuan
b0172211a0 使用switch+restore替代checkout 2023-12-22 03:34:58 +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
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
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
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
ba7797ece1 commit操作初版完成 2023-12-21 02:14:59 +08:00
mrbeanc
a573ede3a6 优化add命令输出 2023-12-20 22:18:30 +08:00
mrbeanc
ffac740f97 处理Windows下绝对路径转换产生的"\\\\?\\"前缀 2023-12-20 16:37:55 +08:00
mrbeanc
5d5187a91c 优化add逻辑 2023-12-20 11:58:40 +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
9c7dee7521 heads文件操作 2023-12-20 01:45:33 +08:00
mrbeanc
6780be2e02 完善add逻辑 2023-12-19 23:57:11 +08:00
mrbeanc
5d7e0585bb 临时提交:add & index & blob 2023-12-19 21:03:47 +08:00
mrbeanc
247347a76e 初步编写add逻辑;新增终端颜色库 2023-12-19 13:49:27 +08:00
mrbeanc
f55ab0e7a6 补充:mit add -u 2023-12-18 13:41:59 +08:00
HouXiaoxuan
f3cfb559b5 精简init 2023-12-17 18:53:04 +08:00
HouXiaoxuan
c78ac18e10 init macos support 2023-12-17 18:33:33 +08:00
mrbeanc
03d5c815f2 实现:init命令 2023-12-17 15:41:20 +08:00