diff options
| author | Junio C Hamano <gitster@pobox.com> | 2015-10-18 15:40:06 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-10-21 15:36:37 -0700 |
| commit | 69e24defd629eb6641e653b73459f57ab750c58b (patch) | |
| tree | 34bce811a893024015da7e414aa8e01fadd4068c /git-gui/lib/commit.tcl | |
| parent | mailinfo: do not let handle_body() touch global "line" directly (diff) | |
| download | git-69e24defd629eb6641e653b73459f57ab750c58b.tar.gz git-69e24defd629eb6641e653b73459f57ab750c58b.zip | |
mailinfo: do not let handle_boundary() touch global "line" directly
This function has a single caller, and called with the global "line"
holding the multi-part boundary line the caller saw while processing
the e-mail body. The function then goes into a loop to process each
line of the input, and fills the same global "line" variable from
the input as it needs to read more lines to process the multi-part
headers.
Let the caller explicitly pass a pointer to this global "line"
variable as an argument, and have the function itself use that
strbuf throughout, instead of referring to the global "line" itself.
There still is a helper function that this function calls that still
touches the global directly; it will be updated as the series progresses.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions
