- 30 May, 2008 3 commits
-
-
Junio C Hamano authored
When unpack_trees() returned an error while switching branches, we used to stop right there, exiting without writing the index out or switching HEAD. This is Ok when unpack_trees() returned an error because it detected untracked files or locally modified paths that could be overwritten by branch switching, because that error return is done before we start to modify the work tree. But it is undesirable if unpack_trees() already started to update the work tree and a failure is returned because some but not all paths are updated in the work tree, perhaps because a directory that some files need to go in was read-only by mistake, or a file that will be overwritten by branch switching had a mandatory lock on it and we failed to unlink it. This changes the behaviour upon such an error to complete the branch switching; the files updated in the work tree will hopefully be much more consistent with the index and HEAD derived from the switched-to branch. We still issue error messages, and exit the command with non-zero status, so scripted callers need to notice it. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Instead of uniformly returning -1 on any error, this teaches unpack_trees() to return -2 when the merge itself is Ok but worktree refuses to get updated. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
These two were very similar functions with only tiny bit of difference. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
- 29 May, 2008 3 commits
-
-
Junio C Hamano authored
Instead, have its error percolate up through the callchain and let it be the exit status of the main command. No semantic changes yet. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
When "git checkout -- paths..." cannot update work tree for whatever reason, checkout_entry() correctly issued an error message for the path to the end user, but the command ignored the error, causing the entire command to succeed. This fixes it. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Geoffrey Irving noticed that git-cherry talks about comparing commits without hinting how they are compared. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
- 28 May, 2008 15 commits
-
-
Junio C Hamano authored
Consistently say so in all caps as it is customary to do so. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Christian Couder authored
It seems simpler and safer to use the BISECT_START file everywhere to decide if we are bisecting or not, instead of using it in some places and BISECT_NAMES in other places. In commit 6459c7c6 (Nov 18 2007, Bisect: use "$GIT_DIR/BISECT_NAMES" to check if we are bisecting.), we decided to use BISECT_NAMES but code changed a lot and we now have to check BISECT_START first in the "bisect_start" function anyway. This patch also makes things a little bit safer by creating the BISECT_START file first and deleting it last, and also by adding checks in "bisect_clean_state". Signed-off-by:
Christian Couder <chriscool@tuxfamily.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Dmitry V. Levin authored
Sync with builtin-fetch--tool.c where append_fetch_head() honors update_local_ref() return value. This fixes non fast forward fetch exit status, http://bugzilla.altlinux.org/show_bug.cgi?id=15037Signed-off-by:
Dmitry V. Levin <ldv@altlinux.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
An earlier commit 633f43e1 (Remove redundant code, eliminate one static variable, 2008-05-24) had a thinko (perhaps an eyeno) that broke sha1_pack_index_name() function. One symptom of this was that the http walker is now completely broken. This should fix it. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Recent "git-svn optimization" series introduced Git::cat_blob() subroutine whose interface was broken in that it returned the size of the blob but signalled an error by returning 0. You can never use an empty blob with such an interface. This fixes the interface to return a negative value to signal an error. Reported by Björn Steinbrink. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
There are broken filesystems that cannot have a file whose name is "nul" anywhere on it. Rename the test file to make ourselves more portable. Noticed by Mark Levedahl. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Gerrit Pape authored
When adding files through git commit --interactive, and 'quit' afterwards, the message in the editor of the commit message indicates that many (maybe all) files are deleted from the tree. Dismissing that and running git commit afterwards does the right thing. This commit fixes git commit --interactive to properly update the index before commiting. Reported by Jiří Paleček through http://bugs.debian.org/480429Signed-off-by:
Gerrit Pape <pape@smarden.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Lea Wiemann authored
There was a bug in the implementation of the "next" links in format_paging_nav (for log and shortlog), which caused the next links to always be displayed, even if there is no next page. This fixes it. Signed-off-by:
Lea Wiemann <LeWiemann@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Johannes Sixt authored
This reverts commit cfabd6ee. I had implemented it without understanding what --full-history does. Consider this history: C--M--N / / / A--B / \ / D-/ where B and C modify a path, X, in the same way so that the result is identical, and D does not modify it at all. With the path limiter X and without --full-history this is simplified to A--B i.e. only one of the paths via B or C is chosen. I had assumed that --full-history would keep both paths like this C--M / / A--B removing the path via D; but in fact it keeps the entire history. Currently, git does not have the capability to simplify to this intermediary case. However, the other extreme to keep the entire history is not wanted either in usual cases. I think we can expect that histories like the above are rare, and in the usual cases we want a simplified history. So let's remove --full-history again. (Concerning t7003, subsequent tests depend on what the test case sets up, so we can't just back out the entire test case.) Signed-off-by:
Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Gerrit Pape authored
The <git-rev-list args> are mandatory to git bundle create, not optional. The usage output of git bundle is already right on this. Signed-off-by:
Gerrit Pape <pape@smarden.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Jeff King authored
If we use an unsupported transport (e.g., http when curl support is not compiled in), transport_get reports an error to the user, but we still get a transport object. We need to manually check and abort the clone process at that point, or we end up with a segfault. Noticed by Thomas Rast. Signed-off-by:
Jeff King <peff@peff.net> Acked-by:
Daniel Barkalow <barkalow@iabervon.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Johannes Sixt authored
The new "trash directory" bites again. Signed-off-by:
Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Karl Hasselström authored
Signed-off-by:
Karl Hasselström <kha@treskal.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
- 27 May, 2008 8 commits
-
-
Junio C Hamano authored
* jc/diff-no-no-index: git diff --no-index: default to page like other diff frontends git-diff: allow --no-index semantics a bit more "git diff": do not ignore index without --no-index diff-files: do not play --no-index games tests: do not use implicit "git diff --no-index"
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Even when inside a git work tree, if two paths are given and at least one is clearly outside the work tree, it cannot be a request to diff a tracked path anyway; allow such an invocation to use --no-index semantics. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
* maint: Documentation: fix graph in git-rev-parse.txt show-branch --current: do not barf on detached HEAD
-
Junio C Hamano authored
* gp/bisect-fix: bisect: print an error message when "git rev-list --bisect-vars" fails git-bisect.sh: don't accidentally override existing branch "bisect"
-
git://repo.or.cz/git-guiJunio C Hamano authored
* git://repo.or.cz/git-gui: git-gui: Vertically align textboxes with labels git-gui: Handle workdir detection when CYGWIN=nowinsymlinks git-gui: Add a --trace command line option
-
Michele Ballabio authored
Preformatted html and man pages show a mangled graph, caused by a backslash. Commit f1ec6b22 fixed this same issue, but it seems that new versions of the Asciidoc toolchain changed their behaviour. Signed-off-by:
Michele Ballabio <barra_cuda@katamail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Twiinz authored
In git-gui after clicking either on 'Create New Repository' or 'Open Existing Repository' the form elements aren't centered like they are pretty much everywhere else in the app. At least when ran on a mac, haven't checked on other platforms. Using grid instead of pack seems to fix this. Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- 26 May, 2008 11 commits
-
-
Junio C Hamano authored
The code assumed that there always is the current branch, but the result from resolve_ref() on detached HEAD does not even start with "refs/heads/". Originally noticed and fixed by Stephan Beyer. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Noticed by Hannes, reported by Dscho. Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Johannes Schindelin authored
This patch adds an option to make hg-to-git quiet by default. Note: it only suppresses those messages that would be printed when everything was up-to-date. Signed-off-by:
Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by:
Stelian Pop <stelian@popies.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
* maint: builtin-fast-export: Only output a single parent per line Release Notes for 1.5.5.2 Conflicts: RelNotes
-
Junio C Hamano authored
* jk/maint-send-email-compose: send-email: rfc2047-quote subject lines with non-ascii characters send-email: specify content-type of --compose body
-
Junio C Hamano authored
* hb/maint-send-email-quote-recipients: Fix recipient santitization
-
Junio C Hamano authored
* maint-1.5.4: builtin-fast-export: Only output a single parent per line
-
Pieter de Bie authored
According to the git-fast-import man-page, you can only put a single committish per merge: line, like this: merge :10 merge :11 However, git-fast-export puts all parents on a single line, like this: merge :10 :11 This changes fast-export to output a single parent per line. Otherwise neither git-fast-import nor bzr-fast-import can read its output. [jc: fix-up to remove excess LF in the output that makes fast-import barf] Signed-off-by:
Pieter de Bie <pdebie@ai.rug.nl> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Shawn O. Pearce authored
If the hook gets invoked with identical old and new ids there is no change taking place. We probably should not have been called, but instead of failing silently allow the no-op. Signed-off-by:
Shawn O. Pearce <spearce@spearce.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-