Re: [RFC/PATCH 1/9] ref-filter: add %(refname:lalignX) option

2015-06-28 Thread Karthik Nayak
On Sun, Jun 28, 2015 at 1:09 PM, Junio C Hamano gits...@pobox.com wrote: Karthik Nayak karthik@gmail.com writes: Add support for %(refname:lalignX) where X is a number. This will print a shortened refname aligned to the left followed by spaces for a total length of X characters. If X is

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Michael Haggerty
On 06/28/2015 09:32 AM, Junio C Hamano wrote: Michael Haggerty mhag...@alum.mit.edu writes: I understand that the user might make a mistake when marking the initial commits, but as soon as bisect says Commit sha1-abbrev is an ancestor of sha1-abbrev, so I will look for the commit

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Junio C Hamano
On Sat, Jun 27, 2015 at 10:51 PM, Michael Haggerty mhag...@alum.mit.edu wrote: I would like to remind everybody of my old claim that it would be possible to teach `git bisect` to infer by itself which term means older and which term means newer:

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Michael Haggerty
On 06/28/2015 08:15 AM, Junio C Hamano wrote: On Sat, Jun 27, 2015 at 10:51 PM, Michael Haggerty mhag...@alum.mit.edu wrote: I would like to remind everybody of my old claim that it would be possible to teach `git bisect` to infer by itself which term means older and which term means newer:

Re: [RFC/PATCH 1/9] ref-filter: add %(refname:lalignX) option

2015-06-28 Thread Karthik Nayak
Hey Christian, On Sun, Jun 28, 2015 at 1:32 AM, Christian Couder christian.cou...@gmail.com wrote: After thinking about such code, I wonder if it would be better to support %(refname:lalign=X) instead of %(refname:lalignX). The reason why it might be interesting to require an = sign between

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: I understand that the user might make a mistake when marking the initial commits, but as soon as bisect says Commit sha1-abbrev is an ancestor of sha1-abbrev, so I will look for the commit that caused the transition from xyzzy to

Re: [msysGit] [PATCH 03/17] (msvc-build) Vcproj.pm: remove duplicate GUID

2015-06-28 Thread Philip Oakley
From: Eric Sunshine sunsh...@sunshineco.com On Wed, Jun 24, 2015 at 8:03 PM, Philip Oakley philipoak...@iee.org wrote: Delete the duplicated GUID from the generation code for the Visual Studio .sln project file. The duplicate GUID tended to be allocated to test-svn-fe, which was then ignored

Re: [RFC/PATCH 1/9] ref-filter: add %(refname:lalignX) option

2015-06-28 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: Add support for %(refname:lalignX) where X is a number. This will print a shortened refname aligned to the left followed by spaces for a total length of X characters. If X is less than the shortened refname size, the entire shortened refname is

[PATCH v4 26/44] builtin-am: support --keep-cr, am.keepcr

2015-06-28 Thread Paul Tan
Since ad2c928 (git-am: Add command line parameter `--keep-cr` passing it to git-mailsplit, 2010-02-27), git-am.sh supported the --keep-cr option and would pass it to git-mailsplit. Since e80d4cb (git-am: Add am.keepcr and --no-keep-cr to override it, 2010-02-27), git-am.sh supported the am.keepcr

[PATCH v4 27/44] builtin-am: implement --[no-]scissors

2015-06-28 Thread Paul Tan
Since 017678b (am/mailinfo: Disable scissors processing by default, 2009-08-26), git-am supported the --[no-]scissors option, passing it to git-mailinfo. Re-implement support for this option in builtin/am.c. Since the default setting of --scissors in git-mailinfo can be configured with

[PATCH v4 28/44] builtin-am: pass git-apply's options to git-apply

2015-06-28 Thread Paul Tan
git-am.sh recognizes some of git-apply's options, and would pass them to git-apply: * --whitespace, since 8c31cb8 (git-am: --whitespace=x option., 2006-02-28) * -C, since 67dad68 (add -C[NUM] to git-am, 2007-02-08) * -p, since 2092a1f (Teach git-am to pass -p option down to git-apply,

[PATCH v4 34/44] builtin-am: invoke applypatch-msg hook

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh will invoke the applypatch-msg hooks just after extracting the patch message. If the applypatch-msg hook exits with a non-zero status, git-am.sh abort before even applying the patch to the index. Re-implement this in

[PATCH v4 29/44] builtin-am: implement --ignore-date

2015-06-28 Thread Paul Tan
Since a79ec62 (git-am: Add --ignore-date option, 2009-01-24), git-am.sh supported the --ignore-date option, and would use the current timestamp instead of the one provided in the patch if the option was set. Re-implement this option in builtin/am.c. Signed-off-by: Paul Tan pyoka...@gmail.com ---

[PATCH v4 35/44] builtin-am: invoke pre-applypatch hook

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sg will invoke the pre-applypatch hook after applying the patch to the index, but before a commit is made. Should the hook exit with a non-zero status, git am will exit. Re-implement this in builtin/am.c. Signed-off-by: Paul

[PATCH v4 32/44] builtin-am: invoke post-rewrite hook

2015-06-28 Thread Paul Tan
Since 96e1948 (rebase: invoke post-rewrite hook, 2010-03-12), git-am.sh will invoke the post-rewrite hook after it successfully finishes applying all the queued patches. To do this, when parsing a mail to extract its patch and metadata, in --rebasing mode git-am.sh will also store the original

[PATCH v4 21/44] builtin-am: bypass git-mailinfo when --rebasing

2015-06-28 Thread Paul Tan
Since 5e835ca (rebase: do not munge commit log message, 2008-04-16), git am --rebasing no longer gets the commit log message from the patch, but reads it directly from the commit identified by the From header line. Since 43c2325 (am: use get_author_ident_from_commit instead of mailinfo when

[PATCH v4 33/44] builtin-am: support automatic notes copying

2015-06-28 Thread Paul Tan
Since eb2151b (rebase: support automatic notes copying, 2010-03-12), git-am.sh supported automatic notes copying in --rebasing mode by invoking git notes copy once it has finished applying all the patches. Re-implement this feature in builtin/am.c. Signed-off-by: Paul Tan pyoka...@gmail.com ---

[PATCH v4 31/44] builtin-am: implement -S/--gpg-sign, commit.gpgsign

2015-06-28 Thread Paul Tan
Since 3b4e395 (am: add the --gpg-sign option, 2014-02-01), git-am.sh supported the --gpg-sign option, and would pass it to git-commit-tree, thus GPG-signing the commit object. Re-implement this option in builtin/am.c. git-commit-tree would also sign the commit by default if the commit.gpgsign

[PATCH v4 38/44] builtin-am: support and auto-detect StGit patches

2015-06-28 Thread Paul Tan
Since c574e68 (git-am foreign patch support: StGIT support, 2009-05-27), git-am.sh supported converting StGit patches into RFC2822 mail patches that can be parsed with git-mailinfo. Implement this by introducing two functions in builtin/am.c: stgit_patch_to_mail() and split_mail_conv().

[PATCH v4 36/44] builtin-am: invoke post-applypatch hook

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh will invoke the post-applypatch hook after the patch is applied and a commit is made. The exit code of the hook is ignored. Re-implement this in builtin/am.c. Signed-off-by: Paul Tan pyoka...@gmail.com --- Notes: No

[PATCH v4 41/44] builtin-am: implement -i/--interactive

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the --interactive mode. After parsing the patch mail and extracting the patch, commit message and authorship info, an interactive session will begin that allows the user to choose between: * applying the patch *

[PATCH v4 43/44] builtin-am: check for valid committer ident

2015-06-28 Thread Paul Tan
When commit_tree() is called, if the user does not have an explicit committer ident configured, it will attempt to construct a default committer ident based on the user's and system's info (e.g. gecos field, hostname etc.) However, if a default committer ident is unable to be constructed,

[PATCH v4 42/44] builtin-am: implement legacy -b/--binary option

2015-06-28 Thread Paul Tan
The -b/--binary option was initially implemented in 087b674 (git-am: --binary; document --resume and --binary., 2005-11-16). The option will pass the --binary flag to git-apply to allow it to apply binary patches. However, in 2b6eef9 (Make apply --binary a no-op., 2006-09-06), --binary was been

[PATCH v4 40/44] builtin-am: support and auto-detect mercurial patches

2015-06-28 Thread Paul Tan
Since 0cfd112 (am: preliminary support for hg patches, 2011-08-29), git-am.sh could convert mercurial patches to an RFC2822 mail patch suitable for parsing with git-mailinfo, and queue them in the state directory for application. Since 15ced75 (git-am foreign patch support: autodetect some patch

[PATCH v4 39/44] builtin-am: support and auto-detect StGit series files

2015-06-28 Thread Paul Tan
Since c574e68 (git-am foreign patch support: StGIT support, 2009-05-27), git-am.sh is able to read a single StGit series file and, for each StGit patch listed in the file, convert the StGit patch into a RFC2822 mail patch suitable for parsing with git-mailinfo, and queue them in the state

[PATCH v4 44/44] builtin-am: remove redirection to git-am.sh

2015-06-28 Thread Paul Tan
At the beginning of the rewrite of git-am.sh to C, in order to not break existing test scripts that depended on a functional git-am, a redirection to git-am.sh was introduced that would activate if the environment variable _GIT_USE_BUILTIN_AM was not defined. Now that all of git-am.sh's

[PATCH v4 37/44] builtin-am: rerere support

2015-06-28 Thread Paul Tan
git-am.sh will call git-rerere at the following events: * git rerere when a three-way merge fails to record the conflicted automerge results. Since 8389b52 (git-rerere: reuse recorded resolve., 2006-01-28) * Since cb6020b (Teach --[no-]rerere-autoupdate option to merge, revert and

[PATCH v4 19/44] builtin-am: implement --3way, am.threeway

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the --3way option, and if set, would attempt to do a 3-way merge if the initial patch application fails. Since d96a275 (git-am: add am.threeWay config variable, 2015-06-04), the setting am.threeWay configures if

[PATCH v4 09/44] builtin-am: implement committing applied patch

2015-06-28 Thread Paul Tan
Implement do_commit(), which commits the index which contains the results of applying the patch, along with the extracted commit message and authorship information. Since 29b6754 (am: remove rebase-apply directory before gc, 2010-02-22), git gc --auto is also invoked to pack the loose objects

[PATCH v4 22/44] builtin-am: handle stray state directory

2015-06-28 Thread Paul Tan
Should git-am terminate unexpectedly between the point where the state directory is created, but the next and last files are not written yet, a stray state directory will be left behind. As such, since b141f3c (am: handle stray $dotest directory, 2013-06-15), git-am.sh explicitly recognizes such

[PATCH v4 10/44] builtin-am: refuse to apply patches if index is dirty

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am will refuse to apply patches if the index is dirty. Re-implement this behavior in builtin/am.c. Signed-off-by: Paul Tan pyoka...@gmail.com --- Notes: Note: no tests for this builtin/am.c | 45

[PATCH v4 24/44] builtin-am: implement -k/--keep, --keep-non-patch

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the -k/--keep option to pass the -k option to git-mailsplit. Since f7e5ea1 (am: learn passing -b to mailinfo, 2012-01-16), git-am.sh supported the --keep-non-patch option to pass the -b option to git-mailsplit.

[PATCH v4 12/44] builtin-am: implement --skip

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am supported resuming from a failed patch application by skipping the current patch. Re-implement this feature by introducing am_skip(). Signed-off-by: Paul Tan pyoka...@gmail.com --- builtin/am.c | 121

[PATCH v4 13/44] builtin-am: implement --abort

2015-06-28 Thread Paul Tan
Since 3e5057a (git am --abort, 2008-07-16), git-am supported the --abort option that will rewind HEAD back to the original commit. Re-implement this through am_abort(). Since 7b3b7e3 (am --abort: keep unrelated commits since the last failure and warn, 2010-12-21), to prevent commits made since

[PATCH v4 16/44] builtin-am: exit with user friendly message on failure

2015-06-28 Thread Paul Tan
Since ced9456 (Give the user a hint for how to continue in the case that git-am fails because it requires user intervention, 2006-05-02), git-am prints additional information on how the user can re-invoke git-am to resume patch application after resolving the failure. Re-implement this through the

[PATCH v4 17/44] builtin-am: implement -s/--signoff

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am supported the --signoff option which will append a signoff at the end of the commit messsage. Re-implement this feature in parse_mail() by calling append_signoff() if the option is set. Signed-off-by: Paul Tan

[PATCH v4 18/44] cache-tree: introduce write_index_as_tree()

2015-06-28 Thread Paul Tan
A caller may wish to write a temporary index as a tree. However, write_cache_as_tree() assumes that the index was read from, and will write to, the default index file path. Introduce write_index_as_tree() which removes this limitation by allowing the caller to specify its own index_state and index

[PATCH v4 15/44] builtin-am: implement -q/--quiet, GIT_QUIET

2015-06-28 Thread Paul Tan
Since 0e987a1 (am, rebase: teach quiet option, 2009-06-16), git-am supported the --quiet option and GIT_QUIET environment variable, and when told to be quiet, would only speak on failure. Re-implement this by introducing the say() function, which works like fprintf_ln(), but would only write to

[PATCH v4 25/44] builtin-am: implement --[no-]message-id, am.messageid

2015-06-28 Thread Paul Tan
Since a078f73 (git-am: add --message-id/--no-message-id, 2014-11-25), git-am.sh supported the --[no-]message-id options, and the am.messageid setting which specifies the default option. --[no-]message-id tells git-am whether or not the -m option should be passed to git-mailinfo. Re-implement

[PATCH v4 23/44] builtin-am: implement -u/--utf8

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the -u,--utf8 option. If set, the -u option will be passed to git-mailinfo to re-code the commit log message and authorship in the charset specified by i18n.commitencoding. If unset, the -n option will be passed to

[PATCH v4 14/44] builtin-am: reject patches when there's a session in progress

2015-06-28 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am would error out if the user gave it mbox(s) on the command-line, but there was a session in progress. Since c95b138 (Fix git-am safety checks, 2006-09-15), git-am would detect if the user attempted to feed it a mbox via stdin,

[PATCH v4 08/44] builtin-am: apply patch with git-apply

2015-06-28 Thread Paul Tan
Implement applying the patch to the index using git-apply. If a file is unchanged but stat-dirty, git-apply may erroneously fail to apply patches, thinking that they conflict with a dirty working tree. As such, since 2a6f08a (am: refresh the index at start and --resolved, 2011-08-15), git-am

[PATCH v4 11/44] builtin-am: implement --resolved/--continue

2015-06-28 Thread Paul Tan
Since 0c15cc9 (git-am: --resolved., 2005-11-16), git-am supported resuming from a failed patch application. The user will manually apply the patch, and the run git am --resolved which will then commit the resulting index. Re-implement this feature by introducing am_resolve(). Since it makes no

[PATCH v4 20/44] builtin-am: implement --rebasing mode

2015-06-28 Thread Paul Tan
Since 3041c32 (am: --rebasing, 2008-03-04), git-am.sh supported the --rebasing option, which is used internally by git-rebase to tell git-am that it is being used for its purpose. It would create the empty file $state_dir/rebasing to help completion scripts tell if the ongoing operation is am or

[PATCH v4 04/44] builtin-am: implement patch queue mechanism

2015-06-28 Thread Paul Tan
git-am applies a series of patches. If the process terminates abnormally, we want to be able to resume applying the series of patches. This requires the session state to be saved in a persistent location. Implement the mechanism of a patch queue, represented by 2 integers -- the index of the

[PATCH v4 02/44] wrapper: implement xfopen()

2015-06-28 Thread Paul Tan
A common usage pattern of fopen() is to check if it succeeded, and die() if it failed: FILE *fp = fopen(path, w); if (!fp) die_errno(_(could not open '%s' for writing), path); Implement a wrapper function xfopen() for the above, so that we can save a few lines of

[PATCH v4 03/44] builtin-am: implement skeletal builtin am

2015-06-28 Thread Paul Tan
For the purpose of rewriting git-am.sh into a C builtin, implement a skeletal builtin/am.c that redirects to $GIT_EXEC_PATH/git-am if the environment variable _GIT_USE_BUILTIN_AM is not defined. Since in the Makefile git-am.sh takes precedence over builtin/am.c, $GIT_EXEC_PATH/git-am will contain

[PATCH v4 01/44] wrapper: implement xopen()

2015-06-28 Thread Paul Tan
A common usage pattern of open() is to check if it was successful, and die() if it was not: int fd = open(path, O_WRONLY | O_CREAT, 0777); if (fd 0) die_errno(_(Could not open '%s' for writing.), path); Implement a wrapper function xopen() that does the above so

[PATCH v4 05/44] builtin-am: split out mbox/maildir patches with git-mailsplit

2015-06-28 Thread Paul Tan
git-am.sh supports mbox, stgit and mercurial patches. Re-implement support for splitting out mbox/maildirs using git-mailsplit, while also implementing the framework required to support other patch formats in the future. Re-implement support for the --patch-format option (since a5a6755 (git-am

[PATCH v4 07/44] builtin-am: extract patch and commit info with git-mailinfo

2015-06-28 Thread Paul Tan
For the purpose of applying the patch and committing the results, implement extracting the patch data, commit message and authorship from an e-mail message using git-mailinfo. git-mailinfo is run as a separate process, but ideally in the future, we should be be able to access its functionality

[PATCH v4 06/44] builtin-am: auto-detect mbox patches

2015-06-28 Thread Paul Tan
Since 15ced75 (git-am foreign patch support: autodetect some patch formats, 2009-05-27), git-am.sh is able to autodetect mbox, stgit and mercurial patches through heuristics. Re-implement support for autodetecting mbox/maildir files in builtin/am.c. RFC 2822 requires that lines are terminated by

[PATCH v4 00/44] Make git-am a builtin

2015-06-28 Thread Paul Tan
This patch series depends on pt/pull-builtin. This is a re-roll of [WIP v3]. This patch series is now out of WIP, as the git-am feature set is complete. I've marked out some features which lack tests though, which I'm working on fixing. Thanks Junio, Stefan, Johannes for the reviews last round.

[PATCH] rerere: fix an off-by-one non-bug

2015-06-28 Thread Junio C Hamano
When ac49f5ca (rerere remaining, 2011-02-16) created a new helper function check_one_conflict() out of find_conflict() function, and made the latter use the returned value from the new helper to update the loop control variable that is an index into the active_cache[], the new variable was

[PATCH] gitk: Update Bulgarian translation (307t)

2015-06-28 Thread ash
From: Alexander Shopov a...@kambanaria.org Signed-off-by: Alexander Shopov a...@kambanaria.org --- po/bg.po | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/po/bg.po b/po/bg.po index c4246bf..61073eb 100644 --- a/po/bg.po +++ b/po/bg.po @@ -8,8 +8,8 @@

Re: Staging commits with visual diff tools?

2015-06-28 Thread John Lee
On Sun, 28 Jun 2015, John Lee wrote: Here it is: https://github.com/jjlee/git-meld-index Hasn't seen use for real yet, so be a bit cautious with it. Comments / patches / whatever appreciated. John By the way despite the name it should support all git difftools (it uses the same git

Re: [PATCH] fsck: it is OK for a tag and a commit to lack the body

2015-06-28 Thread Eric Sunshine
On Sun, Jun 28, 2015 at 2:18 PM, Junio C Hamano gits...@pobox.com wrote: When fsck validates a commit or a tag object, it scans each line in the header the object using helper functions such as start_with(), s/header/ of/ etc. that work on a NUL terminated buffer, but before a1e920a0

[PATCH] fsck: it is OK for a tag and a commit to lack the body

2015-06-28 Thread Junio C Hamano
When fsck validates a commit or a tag object, it scans each line in the header the object using helper functions such as start_with(), etc. that work on a NUL terminated buffer, but before a1e920a0 (index-pack: terminate object buffers with NUL, 2014-12-08), the validation functions were fed the

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: On 06/28/2015 09:32 AM, Junio C Hamano wrote: You just _always_ say good or bad. If something is slow, you say bad and if something is fast, you say good. Yes, I think good and bad would usually be perfectly intuitive and would almost always

[PATCH v2] rerere: fix an off-by-one non-bug

2015-06-28 Thread Junio C Hamano
When ac49f5ca (rerere remaining, 2011-02-16) split out a new helper function check_one_conflict() out of find_conflict() function, so that the latter will use the returned value from the new helper to update the loop control variable that is an index into active_cache[], the new variable

[PATCH] --count feature for git shortlog

2015-06-28 Thread Lawrence Siebert
Signed-off-by: Lawrence Siebert lawrencesieb...@gmail.com --- t/t4201-shortlog.sh | 5 + 1 file changed, 5 insertions(+) diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index 7600a3e..33ecb4a 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -194,4 +194,9 @@

[PATCH] --count feature for git shortlog

2015-06-28 Thread Lawrence Siebert
--summary is per author --count counts all Signed-off-by: Lawrence Siebert lawrencesieb...@gmail.com --- builtin/shortlog.c | 14 +- shortlog.h | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/builtin/shortlog.c b/builtin/shortlog.c index

[PATCH] --count feature for git shortlog

2015-06-28 Thread Lawrence Siebert
This is a new feature for short log, which lets you count commits on a per file or repository basis easily. Currently if you want a total count of commits with shortlog, you would need to add up each authors commits after using --summary. This adds a -N / --count option to shortlog for this

ADMINISTRATOR

2015-06-28 Thread br1788
This message is administrator messaging center to all holders of webmail accounts. We are currently upgrading our data base center and account email. We cancel email using web mail account to create more space for new accounts. if you have not updated before this is your last chance to do it. To

Re: [PATCH] fsck: it is OK for a tag and a commit to lack the body

2015-06-28 Thread Junio C Hamano
Johannes Schindelin johannes.schinde...@gmx.de writes: +/* + * We did not find double-LF that separates the header + * and the body. Not having a body is not a crime but + * we do want to see the terminating LF for the last header + * line. + */ +if (size

Re: [PATCH] --count feature for git shortlog

2015-06-28 Thread Junio C Hamano
Lawrence Siebert lawrencesieb...@gmail.com writes: This is a new feature for short log, which lets you count commits on a per file or repository basis easily. Currently if you want a total count of commits with shortlog, you would need to add up each authors commits after using --summary.

Re: [PATCH v10.1 7/7] bisect: allow any terms set by user

2015-06-28 Thread Christian Couder
On Sun, Jun 28, 2015 at 8:46 AM, Michael Haggerty mhag...@alum.mit.edu wrote: On 06/28/2015 08:15 AM, Junio C Hamano wrote: On Sat, Jun 27, 2015 at 10:51 PM, Michael Haggerty mhag...@alum.mit.edu wrote: I would like to remind everybody of my old claim that it would be possible to teach `git

Re: [PATCH v4 04/44] builtin-am: implement patch queue mechanism

2015-06-28 Thread Stefan Beller
On Sun, Jun 28, 2015 at 7:05 AM, Paul Tan pyoka...@gmail.com wrote: git-am applies a series of patches. If the process terminates abnormally, we want to be able to resume applying the series of patches. This requires the session state to be saved in a persistent location. Implement the

Re: [PATCH v4 01/44] wrapper: implement xopen()

2015-06-28 Thread Stefan Beller
On Sun, Jun 28, 2015 at 9:48 PM, Torsten Bögershausen tbo...@web.de wrote: On 06/28/2015 04:05 PM, Paul Tan wrote: A common usage pattern of open() is to check if it was successful, and die() if it was not: int fd = open(path, O_WRONLY | O_CREAT, 0777); if (fd 0)

Re: [PATCH] fsck: it is OK for a tag and a commit to lack the body

2015-06-28 Thread Johannes Schindelin
Hi Junio, On 2015-06-28 20:18, Junio C Hamano wrote: diff --git a/fsck.c b/fsck.c index 88c92e8..3f264e7 100644 --- a/fsck.c +++ b/fsck.c @@ -255,6 +255,15 @@ static int require_end_of_header(const void *data, unsigned long size, } } + /* + * We did not

Re: [PATCH v4 01/44] wrapper: implement xopen()

2015-06-28 Thread Torsten Bögershausen
On 06/28/2015 04:05 PM, Paul Tan wrote: A common usage pattern of open() is to check if it was successful, and die() if it was not: int fd = open(path, O_WRONLY | O_CREAT, 0777); if (fd 0) die_errno(_(Could not open '%s' for writing.), path); Implement a

Re: [RFC/PATCH 1/9] ref-filter: add %(refname:lalignX) option

2015-06-28 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: On Sun, Jun 28, 2015 at 1:09 PM, Junio C Hamano gits...@pobox.com wrote: Why would we even want this kind of thing in the first place? Is this to make it possible to re-implement some option that exists already in 'git branch' or 'git tag' as a

Re: [PATCH v4 00/44] Make git-am a builtin

2015-06-28 Thread Stefan Beller
This is a re-roll of [WIP v3]. This patch series is now out of WIP, as ... This WIP patch series rewrites git-am.sh into optimized C builtin/am.c, and is part of my GSoC project to rewrite git-pull and git-am into C builtins[1]. I assume the later is just a left over from an old cover