AI检测代码解析 importosimportredeflfs_dir_fetchmatch(directory,pattern):os.chdir(directory)matches=[]foriteminos.listdir('.'):ifre.match(pattern,item):matches.append(item)returnmatches 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 总结 至此,我们已经完成了实现lfs_dir_fetchmatch的所有...
Suspicious comparison atlfs_dir_find_match()#923 Open andriyndevopened this issueJan 17, 2024· 6 comments Copy link andriyndevcommentedJan 17, 2024 The function useslfs_bd_cmp()which, from what I understand, compares data on disk with an arbitrary data passed as argument, and returns: ...
Fortunately we just never happen to call lfs_dir_getslice when lfs_tag_id(lfs->gdisk.tag) == lfs_tag_id(gtag). The reason is we lookup filenames => id in a different function, lfs_dir_fetchmatch, and this function has a different bit logic that marks the sign bit to indicate th...
OpenHarmony-v5.0.3-Release OpenHarmony-v4.1.3-Release OpenHarmony-v5.0.2-Release OpenHarmony-v4.1.2-Release OpenHarmony-v5.0.1-Release OpenHarmony-v4.0.4-Release OpenHarmony-v5.0.0-Release OpenHarmony-v4.0.3-Release OpenHarmony-v4.0.2-Release OpenHarmony-v5.0-Beta1 OpenHarmony-v4.0-Beta2 OpenHarmo...
We've got a 3-agent setup, and we can't get git lfs to fetch properly. The command line run of “git lfs fetch”Step 2/9: git lfs fetch...
Clone an LFS enabled Git repository more efficiently by disabling LFS during the git clone, then performing a 'git lfs pull' directly afterwards. 'git lfs clone' also installs all of the repo-level hooks (.git/hooks) that LFS requires to operate. If --separate-git-dir is given, the ho...
Use git rev-parse to find the git working dir #692 (@sinbad) Improved default remote behaviour & validation for fetch/pull #713 (@sinbad) Make fetch return error code when 1+ downloads failed #734 (@sinbad) Improve lfs.InRepo() detection in init/update #756 (@technoweenie) Teach smudg...
MatchPATHcase insensitively in Windows installer#5680(@bk2204) Bugs Fix crash during pure SSH object transfer with multiple objects#5905(@chrisd8088) ssh: fix connection creation "leaking" connections#5816(@ConcurrentCrab) fix: fix slice init length#5874(@rusttech) ...
Avoid pruning when identical files both match and do not matchlfs.fetchexclude#4973 (@chrisd8088) Applylfs.fetchexcludefilter to previous commits when pruning #4968 (@chrisd8088) Update and correct several error message strings #4943 (@chrisd8088) ...
static int lfs_dir_fetch(lfs_t *lfs, lfs_dir_t *dir, const lfs_block_t pair[2]) { // copy out pair, otherwise may be aliasing dir const lfs_block_t tpair[2] = {pair[0], pair[1]}; bool valid = false; // check both blocks for the most recent revision for (int...