This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef STR_H | |
#define STR_H | |
#include <assert.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct _Str { | |
int rdx; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# touch .gitattributes | |
# echo '*.png filter=ipfs binary' >> .gitattributes | |
# $HOME/.ipfs needs to be backed up on a schedule | |
if ! git diff --quiet || ! git diff --cached --quiet; then | |
echo '⚠️ 工作区或暂存区有未提交的更改' | |
exit 1 | |
elif [[ -n "$(git ls-files --others --exclude-standard)" ]]; then | |
echo '⚠️ 存在未跟踪的新文件' |
- 仓库SSH URL特殊处理
git仓库的ssh url有两种格式
git@host:user/repo_name
ssh://host:port/repo
sublime_merge能正常使用上面的第一种,但无法正常使用第二种,需要补全成
ssh://git@host:port/repo
sun.h
#ifndef SUN_H
#define SUN_H
#include <stdint.h>
#include <stdlib.h>
typedef struct Sun_ {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/server-core/src/main/java/io/onedev/server/job/DefaultJobManager.java b/server-core/src/main/java/io/onedev/server/job/DefaultJobManager.java | |
index dc844133c9..44c4153df0 100644 | |
--- a/server-core/src/main/java/io/onedev/server/job/DefaultJobManager.java | |
+++ b/server-core/src/main/java/io/onedev/server/job/DefaultJobManager.java | |
@@ -393,7 +393,9 @@ public class DefaultJobManager implements JobManager, Runnable, CodePullAuthoriz | |
Optional.ofNullable(pullRequest), paramMapToQuery)) { | |
if (unfinished.getId() < buildId | |
&& (pullRequest != null || gitService.isMergedInto(project1, null, unfinished.getCommitId(), commitId))) { | |
- cancel(unfinished); | |
+ if (Build.Status.PENDING == unfinished.getStatus()) { |
void swap(uint8_t* a, uint8_t* b) {
uint8_t t = *a;
*a = *b;
*b = t;
}
void merge(uint8_t* dest,
uint8_t* left,
NewerOlder