- 30 11月, 2012 1 次提交
-
-
由 Junio C Hamano 提交于
The primary thing Linus's patch wanted to change was to make sure that 0-line change appears for a mode-only change. Update the first test to chmod a file that we can see in the output (limited by --stat-count) to demonstrate it. Also make sure to use test_chmod and compare the index and the tree, so that we can run this test even on a filesystem without permission bits. Later two tests are about fixes to separate issues that were introduced and/or uncovered by Linus's patch as a side effect, but the issues are not related to mode-only changes. Remove chmod from the tests. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
- 28 11月, 2012 6 次提交
-
-
由 Junio C Hamano 提交于
Fix the same issue as the previous one for "git diff --stat"; unmerged entries was doubly-counted. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
Even though we show a separate *UNMERGED* entry in the patch and diffstat output (or in the --raw format, for that matter) in addition to and separately from the diff against the specified stage (defaulting to #2) for unmerged paths, they should not be counted in the total number of files affected---that would lead to counting the same path twice. The separation done by the previous step makes this fix simple and straightforward. Among the filepairs in diff_queue, paths that weren't modified, and the extra "unmerged" entries do not count as total number of files. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
The diffstat generation logic, with --stat-count limit, is implemented as three loops. - The first counts the width necessary to show stats up to specified number of entries, and notes up to how many entries in the data we need to iterate to show the graph; - The second iterates that many times to draw the graph, adjusts the number of "total modified files", and counts the total added/deleted lines for the part that was shown in the graph; - The third iterates over the remainder and only does the part to count "total added/deleted lines" and to adjust "total modified files" without drawing anything. Move the logic to count added/deleted lines and modified files from the second loop to the third loop. This incidentally fixes a bug. The third loop was not filtering binary changes (counted in bytes) from the total added/deleted as it should. The second loop implemented this correctly, so if a binary change appeared earlier than the --stat-count cutoff, the code counted number of added/deleted lines correctly, but if it appeared beyond the cutoff, the number of lines would have mixed with the byte count in the buggy third loop. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
The generated code shouldn't change but it is easier to read. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
It is spelled DIFF_STATUS_UNKNOWN these days, and is different from zero. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
There are a few problems in diff.c around --stat area, partially caused by the recent 74faaa16 (Fix "git diff --stat" for interesting - but empty - file changes, 2012-10-17), and largely caused by the earlier change that introduced when --stat-count was added. Add a few test pieces to t4049 to expose the issues. Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
- 18 10月, 2012 16 次提交
-
-
由 Linus Torvalds 提交于
The behavior of "git diff --stat" is rather odd for files that have zero lines of changes: it will discount them entirely unless they were renames. Which means that the stat output will simply not show files that only had "other" changes: they were created or deleted, or their mode was changed. Now, those changes do show up in the summary, but so do renames, so the diffstat logic is inconsistent. Why does it show renames with zero lines changed, but not mode changes or added files with zero lines changed? So change the logic to not check for "is_renamed", but for "is_interesting" instead, where "interesting" is judged to be any action but a pure data change (because a pure data change with zero data changed really isn't worth showing, if we ever get one in our diffpairs). So if you did chmod +x Makefile git diff --stat before, it would show empty (" 0 files changed"), with this it shows Makefile | 0 1 file changed, 0 insertions(+), 0 deletions(-) which I think is a more correct diffstat (and then with "--summary" it shows *what* the metadata change to Makefile was - this is completely consistent with our handling of renamed files). Side note: the old behavior was *really* odd. With no changes at all, "git diff --stat" output was empty. With just a chmod, it said "0 files changed". No way is our legacy behavior sane. Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
git://github.com/git-l10n/git-po由 Junio C Hamano 提交于
* git://github.com/git-l10n/git-po: l10n: vi.po: update from v1.8.0-rc2-4-g42e55 l10n: Update Swedish translation (1964t0f0u)
-
由 Junio C Hamano 提交于
-
由 Junio C Hamano 提交于
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
* jk/maint-http-half-auth-push: http: fix segfault in handle_curl_result
-
由 Junio C Hamano 提交于
* rr/git-uri-doc: Git url doc: mark ftp/ftps as read-only and deprecate them
-
由 Junio C Hamano 提交于
* bw/cp-a-is-gnuism: tests: "cp -a" is a GNUism
-
由 Junio C Hamano 提交于
* nd/doc-ignore: gitignore.txt: suggestions how to get literal # or ! at the beginning
-
由 Junio C Hamano 提交于
* jc/doc-long-options: gitcli: parse-options lets you omit tail of long options
-
由 Junio C Hamano 提交于
* jc/maint-t1450-fsck-order-fix: t1450: the order the objects are checked is undefined
-
由 Junio C Hamano 提交于
* rr/test-use-shell-path-not-shell: test-lib: use $SHELL_PATH, not $SHELL
-
由 Junio C Hamano 提交于
* rr/test-make-sure-we-have-git: t/test-lib: make sure Git has already been built
-
由 Junio C Hamano 提交于
* po/maint-docs: Doc branch: show -vv option and alternative Doc clean: add See Also link Doc add: link gitignore Doc: separate gitignore pattern sources Doc: shallow clone deepens _to_ new depth
-
由 Junio C Hamano 提交于
* jc/ll-merge-binary-ours: ll-merge: warn about inability to merge binary files only when we can't attr: "binary" attribute should choose built-in "binary" merge driver merge: teach -Xours/-Xtheirs to binary ll-merge driver
-
由 Junio C Hamano 提交于
* db/doc-custom-xmlto: Documentation/Makefile: Allow custom XMLTO binary
-
- 17 10月, 2012 6 次提交
-
-
https://github.com/nafmo/git-l10n-sv由 Jiang Xin 提交于
* 'master' of https://github.com/nafmo/git-l10n-sv: l10n: Update Swedish translation (1964t0f0u)
-
git://github.com/vnwildman/git由 Jiang Xin 提交于
* 'master' of git://github.com/vnwildman/git: l10n: vi.po: update from v1.8.0-rc2-4-g42e55
-
由 Tran Ngoc Quan 提交于
* translate 3 new messages * review quotes Signed-off-by: NTran Ngoc Quan <vnwildman@gmail.com>
-
由 Thomas Ackermann 提交于
These were used to keep track of the last commit a release notes entry was written for, and should have been removed when cutting the final release. Signed-off-by: NThomas Ackermann <th.acker@arcor.de> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
We are almost there... Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
Fixes a regression in maint-1.7.11 (v1.7.11.7), maint (v1.7.12.1) and master (v1.8.0-rc0). * jk/maint-http-half-auth-push: http: fix segfault in handle_curl_result
-
- 16 10月, 2012 3 次提交
-
-
由 Peter Krefting 提交于
Signed-off-by: NPeter Krefting <peter@softwolves.pp.se>
-
由 Jiang Xin 提交于
This po/git.pot update is generated from v1.8.0-rc2-4-g42e55. Signed-off-by: NJiang Xin <worldhello.net@gmail.com>
-
git://github.com/vnwildman/git由 Jiang Xin 提交于
* 'master' of git://github.com/vnwildman/git: l10n: vi.po: update translation upto cc76011e
-
- 15 10月, 2012 1 次提交
-
-
由 Tran Ngoc Quan 提交于
* translate all new messages (100%) * review some others Signed-off-by: NTran Ngoc Quan <vnwildman@gmail.com>
-
- 14 10月, 2012 2 次提交
-
-
由 Junio C Hamano 提交于
* maint: Fix spelling error in post-receive-email hook
-
由 Richard Fearn 提交于
Signed-off-by: NRichard Fearn <richardfearn@gmail.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
- 13 10月, 2012 2 次提交
-
-
由 Junio C Hamano 提交于
* maint: gitweb.cgi: fix "comitter_tz" typo in feed
-
由 Jeff King 提交于
When we create an http active_request_slot, we can set its "results" pointer back to local storage. The http code will fill in the details of how the request went, and we can access those details even after the slot has been cleaned up. Commit 88097030 (http: factor out http error code handling) switched us from accessing our local results struct directly to accessing it via the "results" pointer of the slot. That means we're accessing the slot after it has been marked as finished, defeating the whole purpose of keeping the results storage separate. Most of the time this doesn't matter, as finishing the slot does not actually clean up the pointer. However, when using curl's multi interface with the dumb-http revision walker, we might actually start a new request before handing control back to the original caller. In that case, we may reuse the slot, zeroing its results pointer, and leading the original caller to segfault while looking for its results inside the slot. Instead, we need to pass a pointer to our local results storage to the handle_curl_result function, rather than relying on the pointer in the slot struct. This matches what the original code did before the refactoring (which did not use a separate function, and therefore just accessed the results struct directly). Signed-off-by: NJeff King <peff@peff.net> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
- 12 10月, 2012 2 次提交
-
-
由 Dylan Alex Simon 提交于
gitweb's feeds sometimes contained committer timestamps in the wrong timezone due to a misspelling. Signed-off-by: NDylan Simon <dylan@dylex.net> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
由 Junio C Hamano 提交于
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
-
- 11 10月, 2012 1 次提交
-
-
由 Junio C Hamano 提交于
* rr/git-uri-doc: Git url doc: mark ftp/ftps as read-only and deprecate them
-