X7ROOT File Manager
Current Path:
/usr/share/doc/git-1.8.3.1/technical
usr
/
share
/
doc
/
git-1.8.3.1
/
technical
/
📁
..
📄
api-allocation-growing.html
(17.55 KB)
📄
api-allocation-growing.txt
(1019 B)
📄
api-argv-array.html
(19.44 KB)
📄
api-argv-array.txt
(2.12 KB)
📄
api-builtin.html
(19.43 KB)
📄
api-builtin.txt
(2 KB)
📄
api-config.html
(23.39 KB)
📄
api-config.txt
(5.18 KB)
📄
api-credentials.html
(27.9 KB)
📄
api-credentials.txt
(8.87 KB)
📄
api-decorate.html
(16.23 KB)
📄
api-decorate.txt
(60 B)
📄
api-diff.html
(24.32 KB)
📄
api-diff.txt
(5.22 KB)
📄
api-directory-listing.html
(20.75 KB)
📄
api-directory-listing.txt
(2.71 KB)
📄
api-gitattributes.html
(21.9 KB)
📄
api-gitattributes.txt
(3.62 KB)
📄
api-grep.html
(16.31 KB)
📄
api-grep.txt
(76 B)
📄
api-hash.html
(18.42 KB)
📄
api-hash.txt
(1.4 KB)
📄
api-hashmap.html
(35.57 KB)
📄
api-hashmap.txt
(7.71 KB)
📄
api-history-graph.html
(24.08 KB)
📄
api-history-graph.txt
(5.9 KB)
📄
api-in-core-index.html
(16.96 KB)
📄
api-in-core-index.txt
(457 B)
📄
api-index-skel.txt
(431 B)
📄
api-index.html
(18.45 KB)
📄
api-index.sh
(611 B)
📄
api-index.txt
(1.68 KB)
📄
api-lockfile.html
(20.05 KB)
📄
api-lockfile.txt
(2.92 KB)
📄
api-merge.html
(21.36 KB)
📄
api-merge.txt
(3.3 KB)
📄
api-object-access.html
(16.73 KB)
📄
api-object-access.txt
(342 B)
📄
api-parse-options.html
(31.03 KB)
📄
api-parse-options.txt
(9.36 KB)
📄
api-quote.html
(16.42 KB)
📄
api-quote.txt
(145 B)
📄
api-ref-iteration.html
(19.71 KB)
📄
api-ref-iteration.txt
(2.41 KB)
📄
api-remote.html
(21.26 KB)
📄
api-remote.txt
(3.3 KB)
📄
api-revision-walking.html
(19.76 KB)
📄
api-revision-walking.txt
(2.39 KB)
📄
api-run-command.html
(28.25 KB)
📄
api-run-command.txt
(8.08 KB)
📄
api-setup.html
(16.51 KB)
📄
api-setup.txt
(180 B)
📄
api-sha1-array.html
(19.39 KB)
📄
api-sha1-array.txt
(2.25 KB)
📄
api-sigchain.html
(17.74 KB)
📄
api-sigchain.txt
(1.34 KB)
📄
api-strbuf.html
(32.15 KB)
📄
api-strbuf.txt
(10.17 KB)
📄
api-string-list.html
(26.42 KB)
📄
api-string-list.txt
(6.84 KB)
📄
api-tree-walking.html
(23.17 KB)
📄
api-tree-walking.txt
(4.27 KB)
📄
api-xdiff-interface.html
(16.3 KB)
📄
api-xdiff-interface.txt
(139 B)
📄
index-format.html
(27.12 KB)
📄
index-format.txt
(6.29 KB)
📄
pack-format.html
(24.08 KB)
📄
pack-format.txt
(5.54 KB)
📄
pack-heuristics.html
(42.74 KB)
📄
pack-heuristics.txt
(17.77 KB)
📄
pack-protocol.html
(43.12 KB)
📄
pack-protocol.txt
(20.99 KB)
📄
protocol-capabilities.html
(25.41 KB)
📄
protocol-capabilities.txt
(7.09 KB)
📄
protocol-common.html
(20.08 KB)
📄
protocol-common.txt
(2.7 KB)
📄
racy-git.html
(26.85 KB)
📄
racy-git.txt
(8.63 KB)
📄
send-pack-pipeline.html
(18.73 KB)
📄
send-pack-pipeline.txt
(1.92 KB)
📄
shallow.html
(18.86 KB)
📄
shallow.txt
(2.3 KB)
📄
trivial-merge.html
(21.62 KB)
📄
trivial-merge.txt
(4.16 KB)
Editing: api-argv-array.txt
argv-array API ============== The argv-array API allows one to dynamically build and store NULL-terminated lists. An argv-array maintains the invariant that the `argv` member always points to a non-NULL array, and that the array is always NULL-terminated at the element pointed to by `argv[argc]`. This makes the result suitable for passing to functions expecting to receive argv from main(), or the link:api-run-command.html[run-command API]. The link:api-string-list.html[string-list API] is similar, but cannot be used for these purposes; instead of storing a straight string pointer, it contains an item structure with a `util` field that is not compatible with the traditional argv interface. Each `argv_array` manages its own memory. Any strings pushed into the array are duplicated, and all memory is freed by argv_array_clear(). Data Structures --------------- `struct argv_array`:: A single array. This should be initialized by assignment from `ARGV_ARRAY_INIT`, or by calling `argv_array_init`. The `argv` member contains the actual array; the `argc` member contains the number of elements in the array, not including the terminating NULL. Functions --------- `argv_array_init`:: Initialize an array. This is no different than assigning from `ARGV_ARRAY_INIT`. `argv_array_push`:: Push a copy of a string onto the end of the array. `argv_array_pushl`:: Push a list of strings onto the end of the array. The arguments should be a list of `const char *` strings, terminated by a NULL argument. `argv_array_pushf`:: Format a string and push it onto the end of the array. This is a convenience wrapper combining `strbuf_addf` and `argv_array_push`. `argv_array_pop`:: Remove the final element from the array. If there are no elements in the array, do nothing. `argv_array_clear`:: Free all memory associated with the array and return it to the initial, empty state. `argv_array_detach`:: Detach the argv array from the `struct argv_array`, transferring ownership of the allocated array and strings. `argv_array_free_detached`:: Free the memory allocated by a `struct argv_array` that was later detached and is now no longer needed.
Upload File
Create Folder