Browse Source

Remove unused bits

Dashie der otter 1 year ago
parent
commit
c8a06f3d46
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
3 changed files with 2 additions and 17 deletions
  1. 1
    1
      conf/app.ini
  2. 1
    1
      setting/setting.go
  3. 0
    15
      stuff/markup/markup.go

+ 1
- 1
conf/app.ini View File

@@ -20,7 +20,7 @@ STATIC_ROOT_PATH =
20 20
 ; Either "mysql", "postgres" or "sqlite3", you can connect to TiDB with MySQL protocol
21 21
 DB_TYPE = sqlite3
22 22
 HOST = 127.0.0.1:3306
23
-NAME = gogs
23
+NAME = gittxt
24 24
 USER = root
25 25
 PASSWD =
26 26
 ; For "postgres" only, either "disable", "require" or "verify-full"

+ 1
- 1
setting/setting.go View File

@@ -369,7 +369,7 @@ func initLogging() {
369 369
 			}
370 370
 
371 371
 		case log.FILE:
372
-			logPath := path.Join(LogRootPath, "gogs.log")
372
+			logPath := path.Join(LogRootPath, "git.txt.log")
373 373
 			if err = os.MkdirAll(path.Dir(logPath), os.ModePerm); err != nil {
374 374
 				log.Fatal(2, "Fail to create log directory '%s': %v", path.Dir(logPath), err)
375 375
 			}

+ 0
- 15
stuff/markup/markup.go View File

@@ -27,21 +27,6 @@ var (
27 27
 	// MentionPattern matches string that mentions someone, e.g. @Unknwon
28 28
 	MentionPattern = regexp.MustCompile(`(\s|^|\W)@[0-9a-zA-Z-_\.]+`)
29 29
 
30
-	// CommitPattern matches link to certain commit with or without trailing hash,
31
-	// e.g. https://try.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2
32
-	CommitPattern = regexp.MustCompile(`(\s|^)https?.*commit/[0-9a-zA-Z]+(#+[0-9a-zA-Z-]*)?`)
33
-
34
-	// IssueFullPattern matches link to an issue with or without trailing hash,
35
-	// e.g. https://try.gogs.io/gogs/gogs/issues/4#issue-685
36
-	IssueFullPattern = regexp.MustCompile(`(\s|^)https?.*issues/[0-9]+(#+[0-9a-zA-Z-]*)?`)
37
-	// IssueNumericPattern matches string that references to a numeric issue, e.g. #1287
38
-	IssueNumericPattern = regexp.MustCompile(`( |^|\()#[0-9]+\b`)
39
-	// IssueAlphanumericPattern matches string that references to an alphanumeric issue, e.g. ABC-1234
40
-	IssueAlphanumericPattern = regexp.MustCompile(`( |^|\()[A-Z]{1,10}-[1-9][0-9]*\b`)
41
-	// CrossReferenceIssueNumericPattern matches string that references a numeric issue in a difference repository
42
-	// e.g. gogits/gogs#12345
43
-	CrossReferenceIssueNumericPattern = regexp.MustCompile(`( |^)[0-9a-zA-Z-_\.]+/[0-9a-zA-Z-_\.]+#[0-9]+\b`)
44
-
45 30
 	// Sha1CurrentPattern matches string that represents a commit SHA, e.g. d8a994ef243349f321568f9e36d5c3f444b99cae
46 31
 	// FIXME: this pattern matches pure numbers as well, right now we do a hack to check in RenderSha1CurrentPattern
47 32
 	// by converting string to a number.

Loading…
Cancel
Save