Server IP : 103.119.228.120 / Your IP : 3.145.78.117 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/share/doc/git-1.8.3.1/technical/ |
Upload File : |
Remotes configuration API ========================= The API in remote.h gives access to the configuration related to remotes. It handles all three configuration mechanisms historically and currently used by Git, and presents the information in a uniform fashion. Note that the code also handles plain URLs without any configuration, giving them just the default information. struct remote ------------- `name`:: The user's nickname for the remote `url`:: An array of all of the url_nr URLs configured for the remote `pushurl`:: An array of all of the pushurl_nr push URLs configured for the remote `push`:: An array of refspecs configured for pushing, with push_refspec being the literal strings, and push_refspec_nr being the quantity. `fetch`:: An array of refspecs configured for fetching, with fetch_refspec being the literal strings, and fetch_refspec_nr being the quantity. `fetch_tags`:: The setting for whether to fetch tags (as a separate rule from the configured refspecs); -1 means never to fetch tags, 0 means to auto-follow tags based on the default heuristic, 1 means to always auto-follow tags, and 2 means to fetch all tags. `receivepack`, `uploadpack`:: The configured helper programs to run on the remote side, for Git-native protocols. `http_proxy`:: The proxy to use for curl (http, https, ftp, etc.) URLs. struct remotes can be found by name with remote_get(), and iterated through with for_each_remote(). remote_get(NULL) will return the default remote, given the current branch and configuration. struct refspec -------------- A struct refspec holds the parsed interpretation of a refspec. If it will force updates (starts with a '+'), force is true. If it is a pattern (sides end with '*') pattern is true. src and dest are the two sides (if a pattern, only the part outside of the wildcards); if there is only one side, it is src, and dst is NULL; if sides exist but are empty (i.e., the refspec either starts or ends with ':'), the corresponding side is "". This parsing can be done to an array of strings to give an array of struct refpsecs with parse_ref_spec(). remote_find_tracking(), given a remote and a struct refspec with either src or dst filled out, will fill out the other such that the result is in the "fetch" specification for the remote (note that this evaluates patterns and returns a single result). struct branch ------------- Note that this may end up moving to branch.h struct branch holds the configuration for a branch. It can be looked up with branch_get(name) for "refs/heads/{name}", or with branch_get(NULL) for HEAD. It contains: `name`:: The short name of the branch. `refname`:: The full path for the branch ref. `remote_name`:: The name of the remote listed in the configuration. `remote`:: The struct remote for that remote. `merge_name`:: An array of the "merge" lines in the configuration. `merge`:: An array of the struct refspecs used for the merge lines. That is, merge[i]->dst is a local tracking ref which should be merged into this branch by default. `merge_nr`:: The number of merge configurations branch_has_merge_config() returns true if the given branch has merge configuration given. Other stuff ----------- There is other stuff in remote.h that is related, in general, to the process of interacting with remotes. (Daniel Barkalow)