Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
YunHsiao committed Jan 17, 2025
1 parent 0af5b4e commit 7bed843
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Crysknife.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ if [ ! -z "$Loc" ]; then
cd $DIR/../$Project
SOURCE=`find . -path './Source/*.*' -not -path "./Source/ThirdParty/*" | xargs wc -l`
if [ "$(uname)" == "Darwin" ]; then
NEW=`find -E . -regex './SourcePatch/.*\.(cpp|h|mm)' | xargs wc -l`
NEW=`find -E . -regex './SourcePatch/.*\.(cpp|h|inl|cs|mm)' | xargs wc -l`
else
NEW=`find . -regex './SourcePatch/.*\.\(cpp\|h\|mm\)' | xargs wc -l`
NEW=`find . -regex './SourcePatch/.*\.\(cpp\|h\|inl\|cs\|mm\)' | xargs wc -l`
fi
P=`find . -path './SourcePatch/*.patch' | xargs grep ^+ | grep -o %0a | wc -l`

Expand Down
4 changes: 2 additions & 2 deletions Crysknife/CrysknifePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public bool HasAnyActivePatch()
private readonly DiffMatchPatch Context = new()
{
// Be more strict on matches
PatchDeleteThreshold = 0.3f,
MatchThreshold = 0.3f,
PatchDeleteThreshold = 0.4f,
MatchThreshold = 0.4f,
// Line number may vary significantly
MatchDistance = int.MaxValue
};
Expand Down
7 changes: 7 additions & 0 deletions Documents/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Welcome to Crysknife's documentation!

This project is under active development.


Contents
--------

Expand All @@ -19,3 +20,9 @@ Contents
config
iteration
comment-tag

About the name...
-----------------

| It is a highly practical tool with surgical precision,
| made out of tiny parts of something humongous & sacred.
24 changes: 15 additions & 9 deletions Documents/iteration.dot
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@

digraph G {
layout=dot splines=true compound=true overlap=false bgcolor="#262626" rankdir=TB
node [fontname="Noto Serif CJK SC" shape=box style=rounded color="#CDD3DE" fontcolor="#CDD3DE"]
node [fontname="Noto Serif CJK SC" shape=Mrecord style=rounded color="#CDD3DE" fontcolor="#CDD3DE"]
edge [fontname="Source Code Pro" color="#CDD3DE", fontcolor="#CDD3DE"]
graph [center=true pad=0.5 nodesep=0.9]
graph [center=true pad=0.5 nodesep=0.9 compound=true]

A [label="Internal\nRepositories" color="#7777FF" fontcolor="#7777FF"]

subgraph cluster_patches {
color="#CDD3DE" fontcolor="#FFCB6B" style=dotted
E [label="Source Patches" shape=box3d]
}

B [label="Stock\nRepositories" color="#77FF77" fontcolor="#77FF77"]
C [label="Release\nRepository" color="#FF7777" fontcolor="#FF7777"]
D [label="Source\nPatches"]

{ rank = same; B; C; }

A -> D [dir=back]
D -> A [dir=back label=" -Gn 2" color="#7777FF", fontcolor="#7777FF"]
A -> E [lhead=cluster_patches dir=back]
E -> A [ltail=cluster_patches dir=back label=" -Gn 2" color="#7777FF", fontcolor="#7777FF"]

B -> D [label="-Gn" color="#77FF77", fontcolor="#77FF77"]
D -> B
B -> E [lhead=cluster_patches label="-Gn" color="#77FF77", fontcolor="#77FF77"]
E -> B [ltail=cluster_patches]

C -> D [label="-G" color="#FF7777", fontcolor="#FF7777"]
D -> C
C -> E [lhead=cluster_patches label="-G" color="#FF7777", fontcolor="#FF7777"]
E -> C [ltail=cluster_patches ]
}
Binary file modified Documents/iteration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 15 additions & 5 deletions Documents/locales/zh_CN/LC_MESSAGES/index.po
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# SPDX-FileCopyrightText: 2024 Yun Hsiao Wu <yunhsiaow@gmail.com>
# SPDX-License-Identifier: MIT

msgid ""
msgstr ""
"Project-Id-Version: Crysknife \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-28 11:59+0800\n"
"POT-Creation-Date: 2024-12-11 21:21+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand All @@ -16,15 +15,26 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.16.0\n"

#: index.rst:6
#: ../../index.rst:6
msgid "Welcome to Crysknife's documentation!"
msgstr "欢迎查阅 Crysknife 文档!"

#: index.rst:10
#: ../../index.rst:10
msgid "This project is under active development."
msgstr "本项目尚在活跃开发期。"

#: index.rst:13
#: ../../index.rst:14
msgid "Contents"
msgstr "目录"

#: ../../index.rst:25
msgid "About the name..."
msgstr "关于项目名…"

#: ../../index.rst:27
msgid "It is a highly practical tool with surgical precision,"
msgstr "这是一个手术刀般精准,极度实用的工具,"

#: ../../index.rst:28
msgid "made out of tiny parts of something humongous & sacred."
msgstr "以某个巨大且神圣的实体的微小部件制作而成。"

0 comments on commit 7bed843

Please sign in to comment.