aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-07-17Fix dirty index errors when resolving conflictsHEADmasterZane Bitter1-6/+7
The patch 6e8fdc58c786a45d7a63c5edf9c702f1874a7a19 causes StGit to raise "warnings" (actually: errors) in the event that there are changes staged in the index and a refresh is performed without specifying either --index or --force. This is great for preventing an entire class of common mistakes, but is also a giant pain when resolving conflicts after a pull/rebase. Depending on the workflow in use, this may occur with a frequency anywhere between "never" and "mulitple times on every pull". This patch removes the pain by: - Reporting unresolved conflicts *before* complaining about staged changes, since it goes without saying that, when present, these are the main problem. - Not complaining about staged changes if there are no unstaged changes in the working directory, since the presence of --index is immaterial in this case. Signed-off-by: Zane Bitter <zbitter@redhat.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-06-27gitignore: Add ChangeLog to .gitignorev0.17Peter P Waskiewicz Jr1-0/+1
The ChangeLog is created by the build scripts each time, so don't worry about tracking it. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-06-27changelog: add new debian changelog entryPeter P Waskiewicz Jr1-0/+6
Need a new entry for the next release. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-06-20stg: make refresh warn when index is dirtyJacob Keller1-0/+18
Sometimes it is useful to use git add interactively in order to selectively add parts of an edit to the index, and then refresh a patch. However, standard stg operation has refresh add every modified file to the patch. This is somewhat annoying because it is easy to perform a git add -i and then forget to use the '--index' option. This patch adds code which checks whether the index is clean (no changes) before allowing a refresh. In addition, a new option '--force' which overrides this check has been added in the cases where these are necessary, such as adding new files in a patch. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-06-20stg: require python2 rather than generic python executableJacob Keller6-6/+6
This patch fixes an issue with machines which have python3 and python2 installed. It requires the python2 executable by default in order to prevent accidental use of the Python 3 series (which is not compatible.) Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-05-29AUTHORS: add PJ to authors filePeter P Waskiewicz Jr1-0/+1
Simple add of PJ's gmail address. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-05-29mail: don't hardcode space locations in template variablesJacob Keller4-24/+43
This patch modifies stgit-mail in order to enable templates to move the ordering of PATCH, the prefix, the version, and the number. The issue is due to stgit hardcoding a ' ' after the previx, before version and before numbers. This means that you can't design a template which re-orders these as it will result in incorrect spacing being generated. To this end, introduce %(vspace), %(nspace) and %(pspace) which allows a template to move the spacing around and enable correct alignment inside a template. This won't change the default behavior (if sticking to the standard templates) but enables more ability to customize and modify the default behaviors. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-05-29templates: fix attach option to create a proper mbox formatPeter P Waskiewicz Jr1-0/+3
There was a bug where the attach option to stg mail was not spitting out a patch that can be used by git am, because the patch file only contained the diff. This is derived from the same fix from Jesse Brandeburg for the attachinline mbox fix. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-05-29templates: fix attachinline option to generate proper mboxJesse Brandeburg1-0/+3
There was a bug where the attachinline option to stg mail was not spitting out a patch that can be used by git am, because the patch file only contained the diff. This modifies the template to include pretty much the same text in the mail as is in the attachment. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-04-29mail: Do no filter explicitly added --cc sender addressCatalin Marinas1-7/+5
With this patch, only the automatically generated sender address is filtered out. Explicitly added one is kept. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2013-01-23uncommit: Prevent stack trace for uncommit --to a mergeJacob Keller1-9/+10
This patch fixes a bug caused when attempting to stg uncommit --to a merge, which stgit is not able to handle. Previously stg uncommit would output a nasty stack trace instead of a clean warning message. This was due to checking for multiple parents only inside the get_parent function. The fix is to instead check for parent before appending patch to the list of patches. Do this by creating a "check_and_append" function which will be called instead of commits.append(n). The bug was present because of the logic for --to not calling "get_parent" at the final "to" commit. Note that the addition of out.done in the exception is to enable slightly better formatting of the output message (start it on a new line instead of the previous one) Reported-by: Matthew Vick <matthew.vick@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2013-01-08stgit: Add support for attaching patches and sending them inlinePeter P Waskiewicz Jr2-0/+27
Add a new mail command and mail template to send patches both as an attachment plus inline in the mail. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2012-12-05Include emacs and vim contribs in source tarballZane Bitter1-0/+3
This will enable downstream distros to package them. Signed-off-by: Zane Bitter <zbitter@redhat.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-30stgit/git.py: Handle a reset that changes files to directoriesPeter Maydell1-1/+1
If reset() takes us from a tree where some path is a file to one where it is a directory, then checkout() will replace the file with the directory, and we don't want to try to os.remove() the path (which would throw an exception because we're trying to remove a directory.) This fixes bug https://gna.org/bugs/?15682. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-18correct spelling error of accomodateDaniel Bergey1-1/+1
Signed-off-by: Daniel Bergey <bergey@alum.mit.edu> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-18correct typo "allows to place"Daniel Bergey1-1/+1
Signed-off-by: Daniel Bergey <bergey@alum.mit.edu> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-18Regexen for macros to create links in html documentationDaniel Bergey1-0/+6
Signed-off-by: Daniel Bergey <bergey@alum.mit.edu> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-18Fix the 'status --reset' error messagesCatalin Marinas2-4/+4
They should now be 'reset --hard'. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-18Remove setup.cfgCatalin Marinas2-3/+0
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-04-10stgit.el: Make stgit-commit commit at most as many patches as are availableGustav Hållberg1-3/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Set file names when calling smerge-ediffGustav Hållberg1-1/+3
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Handle file names that must be quotedGustav Hållberg1-8/+42
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Stop stgit-rename from causing error on no changeGustav Hållberg1-11/+12
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Use truenames when finding an already-existing stgit bufferGustav Hållberg1-2/+2
This makes stgit run on different paths that resolve to the same directory use the same stgit buffer. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Fix bug when displaying non-stgit branchesGustav Hållberg1-4/+7
Repairs bug introduced in bf7e391cbf0673575fe73915fd71c0920d0f217a. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Catch errors in a better way in stgit-initGustav Hållberg1-3/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Make sure to set major mode in stgit-capture-outputGustav Hållberg1-0/+1
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Change stgit-capture-output to return what its body returnedGustav Hållberg1-8/+9
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Make \C-o create new patch at pointGustav Hållberg1-6/+46
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Allow opening specific revisions of filesGustav Hållberg1-12/+40
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Fix problems with revert of unmerged filesGustav Hållberg1-21/+56
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Allow "U" to delete unknow/ignored files and directoriesGustav Hållberg1-19/+20
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Add and use stgit-assert-no-unmerged-changesGustav Hållberg1-2/+9
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Add and use stgit-save-excursionGustav Hållberg1-34/+109
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Make "i" set mark correctly when working on the entire patchGustav Hållberg1-0/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Change return value of stgit-goto-patchGustav Hållberg1-18/+25
Make it possible to distinguish between the case where the patch was found but not the file and the case where both were found. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-09stgit.el: Refactor: rewrite stgit-define-toggle-viewGustav Hållberg1-11/+12
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Show human-friendly message when {expand,collaps}ing patchesGustav Hållberg1-3/+8
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Show human-friendly message when pressing =Gustav Hållberg1-49/+54
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Add and use stgit-show-task-message to show messagesGustav Hållberg1-39/+51
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Delay buffer reloads when setting customization variablesGustav Hållberg1-23/+35
This prevents reload-spam when doing eval-buffer in stgit.el. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Make stgit-previous-patch move to the current patch if on a ↵Gustav Hållberg1-0/+2
patched file. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Unexpand all (normal) patches when switching branchesGustav Hållberg1-0/+6
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Do not tab complete on current branch for stgit-branchGustav Hållberg1-5/+6
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07stgit.el: Make stgit-branch ask whether to merge uncommitted changesGustav Hållberg1-19/+36
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07branch: Add --merge flag when switching branchesGustav Hållberg1-2/+5
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-07ignore error return from git show-ref when reading ref cacheGustav Hållberg1-1/+8
This makes stg produce a slightly better error message when run in a newly initialized (empty) git tree. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-04-06stgit.el: Make "\C-u !" run git even when no patches are selectedGustav Hållberg1-7/+6
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2012-02-15Update the TODO fileCatalin Marinas1-14/+23
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-02-15Parse commit object header correctlyJunio C Hamano1-14/+24
To allow parsing the header produced by versions of Git newer than the code written to parse it, all commit parsers are expected to skip unknown header lines, so that newer types of header lines can be added safely. The only three things that are promised are: (1) the header ends with an empty line (just an LF, not "a blank line"), (2) unknown lines can be skipped, and (3) a header "field" begins with the field name, followed by a single SP followed by the value. The parser used by StGit, introduced by commit cbe4567 (New StGit core infrastructure: repository operations, 2007-12-19), was accidentally a bit too loose to lose information, and a bit too strict to raise exception when dealing with a line it does not understand. - It used "strip()" to lose whitespaces from both ends, risking a line with only whitespaces to be mistaken as the end of the header. - It used "k, v = line.split(None, 1)", blindly assuming that all header lines (including the ones that the version of StGit may not understand) can safely be split without raising an exception, which is not true if there is no SP on the line. This patch changes the parsing logic so that it: (1) detects end of the hedaer correctly by treating only an empty line as such; (2) handles multi-line fields (a header line that begins with a single SP is appended to the previous line after removing that leading SP but retaining the LF between the line and the previous line) correctly; (3) splits a line at the first SP to find the field name, but only does so when there actually is SP on the line; and (4) ignores lines that cannot be understood without barfing. Updated following comments from Michael Haggerty. Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-01-18stg delete --topStepan Koltsov2-3/+25
shortcut for: stg delete `stg top` Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-01-09Release 0.16v0.16Catalin Marinas2-50/+22
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-01-09Add debian/changelog entry for the old 0.15 releaseCatalin Marinas1-0/+6
It was missed on the previous release. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2012-01-09Fix the tutorial title markupCatalin Marinas1-1/+1
asciidoc complains about using level 0 section in a non-book document. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2011-09-12Correct several transaction/log messagesNorbert Nemec3-3/+3
Signed-off-by: Norbert Nemec <Norbert@Nemec-online.de> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-12Replace the 'stg status' command with the 'git status -s' aliasCatalin Marinas12-165/+41
There isn't really any point in keeping another status command. The only functionality missing would be 'status --reset' but this was moved to the 'reset --hard' command (similar to what Git does). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-12Allow 'stg reset --hard' to reset the changes in the worktreeCatalin Marinas2-13/+18
This is similar to the git reset --hard command. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-08remove obseleted TODO itemLu Guanqun1-1/+0
This TODO item was done with this commit, so remove it. c6f366f6b7452e24edf5bff06da8b69c500899a4 Author: Catalin Marinas <catalin.marinas@gmail.com> Date: Fri Jan 26 22:29:10 2007 +0000 Make the 'series --short' length configurable The 'shortnr' config option was added so that one can set a different length than the default 5. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Signed-off-by: Lu Guanqun <guanqun.lu@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-08add fuzzy patch name lookup support for 'goto' commandLu Guanqun2-3/+18
With this patch, we can now specify part of a long patch name, and it will try to match the correct one. Signed-off-by: Lu Guanqun <guanqun.lu@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-08add color to series commandLu Guanqun2-9/+44
The ANSI escape sequence chart is got from http://pypi.python.org/pypi/colorama The example file is updated as well to show how to specify the colors. Signed-off-by: Lu Guanqun <guanqun.lu@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-09-08fix typo in examples/gitconfigLu Guanqun1-1/+1
Signed-off-by: Lu Guanqun <guanqun.lu@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2011-06-01Don't clear the list of changed patches when we hit a push conflictKarl Wiberg2-2/+1
This fixes the failing test added in the previous patch. Bug discovered by and fixed in collaboration with Dan Härdfeldt. The offending line was added in ba52890d Record a single transaction for conflicting push operations but I can't see why. Signed-off-by: Karl Wiberg <kha@treskal.com>
2011-06-01Add two tests (one currently failing) for "stg float" causing conflictsKarl Wiberg2-0/+80
Signed-off-by: Karl Wiberg <kha@treskal.com>
2011-06-01reorder_patches: Comment that a failed push means we never get to the endKarl Wiberg1-0/+2
Signed-off-by: Karl Wiberg <kha@treskal.com>
2011-06-01Correct function docstringKarl Wiberg1-1/+1
Signed-off-by: Karl Wiberg <kha@treskal.com>
2011-06-01Diff several trees at once with git diff-tree --stdinKarl Wiberg2-6/+36
Instead of spawning a separate diff-tree process for every pair of trees we want to diff. This speeds things up slightly: about 10% when uncommitting and rebasing 1470 linux-kernel patches (perftest.py rebase-newrebase-add-file-linux). Signed-off-by: Karl Wiberg <kha@treskal.com>
2011-02-14Remove the assert in CommitData.parse() functionCatalin Marinas1-2/+0
When some unknown key/value pairs are found in the commit data, StGit crashes. It looks like this can actually happen with the "encoding: latin1" pair. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-11-24contrib/vim: Add vim syntax highlighting for StGit commit messagesZane Bitter6-0/+196
Signed-off-by: Zane Bitter <zane.bitter@alliedtelesis.co.nz> Tested-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-11-24StGit: export: fix base commit reporting in series filePaulius Zaleckas1-1/+1
This bug was introduced in 3f19450c426970b78b19c522a82df1a962da5761 It should report the commit stg stack is based on, but not the last patch in stack. Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-22Add a branch --cleanup optionCatalin Marinas2-7/+42
This has been required for some time. If you need to take a branch out of StGit control, use this option (keeps the branch but removes the metadata). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-22Fix stg repair for hidden patchesJuergen Wieferink3-5/+60
Signed-off-by: Juergen Wieferink <wieferink@fhi-berlin.mpg.de> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-22Do not truncate the last word when creating patch namesCatalin Marinas1-1/+11
The automatically generated patch names are truncated to stgit.namelength but this was truncating the final words. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-22Allow uncommitting to a common ancestorCatalin Marinas1-0/+5
With the --to=<commit> option to uncommit, if the given commit is not in the history just try to find the common ancestor and uncommit to that point (exclusive range). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-22get_merge_bases() should return a list rather than setCatalin Marinas2-2/+2
This is for cases where we need to use one of the elements of the list. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-10-05Read several objects at once with git cat-file --batchKarl Wiberg3-3/+62
Instead of spawning a separate cat-file process for every blob and commit we want to read. This speeds things up slightly: about 6-8% when uncommitting and rebasing 1470 linux-kernel patches (perftest.py rebase-newrebase-add-file-linux). Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-06-10tutorial: Very minor typo fixes in the Emacs sectionGustav Hållberg1-4/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Add stgit-{git,stg}-program variablesGustav Hållberg1-12/+25
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Rearrange customizations a bitGustav Hållberg1-45/+50
Move faces to a customization subgroup. Sort customization entries in a more user-friendly way. Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Add "Customize StGit" menu entryGustav Hållberg1-0/+2
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Improve how "t h" mode finds old commitsGustav Hållberg1-3/+4
Use 'git log -<N>' to list historical commits. This avoids showing more than stgit-committed-count patches (for merges) and does not cause an error when running out of history. Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Make C-{up,down} move between groups of patchesGustav Hållberg1-8/+85
Also make stgit-{previous,next}-patch behave the same way when moving past the first/last patch. Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Add a few links to some customization variablesGustav Hållberg1-0/+2
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Repair ! for historical commitsGustav Hållberg1-10/+7
Fixes omission in 8f489f41f8ffe6e06254cefc5b352610df06cbeb. Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Honor stgit-find-copies-harder in stgit-diff-rangeGustav Hållberg1-4/+6
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-06-10stgit.el: Honor stgit-find-copies-harder when showing entire patchesGustav Hållberg1-1/+2
Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-05-27stgit.el: Fix showing diff in file that has been both copied and modifiedGustav Hållberg1-0/+2
Use --diff-filter=C when showing the diff of the copy operation. Signed-off-by: Gustav Hållberg <gustav@gmail.com> Signed-off-by: David Kågedal <davidk@lysator.liu.se>
2010-05-24edit: Allow setting git tree of a patchGustav Hållberg2-11/+43
Also fix capitalization in edit's short description. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-05-24Repository.rev_parse: support commits, trees, and blobsGustav Hållberg1-4/+6
2010-05-15Restore the original applied patches during 'commit'Catalin Marinas2-2/+27
If committing a patch in the middle of a series, the resulting stack doesn't have any patches applied. The trans.pop_patches() function only returns the additional patches that had to be popped rather than all popped patches. The patch also adds some tests for the 'commit' command. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Reported-by: Jeenu Viswambharan <Jeenu.Viswambharan@arm.com> Cc: Karl Hasselström <kha@treskal.com>
2010-05-05Merge remote branch 'gustav/proposed'Karl Wiberg2-171/+444
* gustav/proposed: (22 commits) stgit.el: Make ! with prefix argument prompt for git command stgit.el: Make ! sort patches when building command line stgit.el: Add visual feedback (a message) when toggling view flags stgit.el: Add stgit-inhibit-messages stgit.el: Add support for showing git-svn information stgit.el: Remove useless defvars stgit.el: Use forward-line instead of goto-line non-interactively stgit.el: Make stgit-toggle-* behave as documented stgit.el: Make "C-u r" raise error if run with prefix argument without a patch stgit.el: Make stgit-reload move point more intuitively when a patch disappears stgit.el: Allow showing recent historical (committed) commits as well stgit.el: Add stgit-line-format stgit.el: Minor improvements of stgit{,-noname}-patch-line-format documentation stgit.el: Delay automatic refresh of stgit buffers a bit stgit.el: Refresh stgit buffer after dired-delete-file stgit.el: Refactor: use mapc to set all local variables in stgit-mode stgit.el: Add stgit-default-show-{ignored,unknown} stgit.el: Fix so "t u" and "t i" only operate on the current buffer stgit.el: Move to goal column after expanding unknown directory stgit.el: Ask for branch point when creating new branch ...
2010-04-30stgit.el: Make ! with prefix argument prompt for git commandGustav Hållberg1-4/+8
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Make ! sort patches when building command lineGustav Hållberg1-1/+2
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Add visual feedback (a message) when toggling view flagsGustav Hållberg1-8/+25
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Add stgit-inhibit-messagesGustav Hållberg1-11/+21
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Add support for showing git-svn informationGustav Hållberg1-11/+64
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Remove useless defvarsGustav Hållberg1-3/+0
These defvars are no longer needed as they are defined as buffer-local in stgit-mode. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Use forward-line instead of goto-line non-interactivelyGustav Hållberg1-1/+3
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Make stgit-toggle-* behave as documentedGustav Hållberg1-36/+24
Add macro stgit-define-toggle-view to implement these functions. Repair prefix argument behavior. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Make "C-u r" raise error if run with prefix argument without a patchGustav Hållberg1-1/+1
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Make stgit-reload move point more intuitively when a patch disappearsGustav Hållberg1-4/+5
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Allow showing recent historical (committed) commits as wellGustav Hållberg2-70/+177
This is controlled with the "t h" command. Signed-off-by: David Kågedal <davidk@lysator.liu.se> Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Add stgit-line-formatGustav Hållberg1-3/+8
This function will be used in the following patch. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Minor improvements of stgit{,-noname}-patch-line-format documentationGustav Hållberg1-4/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Delay automatic refresh of stgit buffers a bitGustav Hållberg1-6/+40
This prevents multiple consecutive refreshes when several refresh-causing operations are done after each other, which happens when one does recursive deletes. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Refresh stgit buffer after dired-delete-fileGustav Hållberg1-2/+4
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Refactor: use mapc to set all local variables in stgit-modeGustav Hållberg1-11/+11
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Add stgit-default-show-{ignored,unknown}Gustav Hållberg1-4/+28
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Fix so "t u" and "t i" only operate on the current bufferGustav Hållberg1-6/+10
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Move to goal column after expanding unknown directoryGustav Hållberg1-0/+2
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-04-30stgit.el: Ask for branch point when creating new branchGustav Hållberg1-3/+10
This makes sure git-config branch.<branch>.parentbranch is set correctly. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-03-29publish: Add '--last' option to show the last published patchCatalin Marinas1-2/+24
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-26Strip leading or trailing '-' when generating patch namesCatalin Marinas1-1/+1
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-25publish: Add the --unpublished options to list not yet published patchesCatalin Marinas2-6/+36
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-24stgit.el: Use comint-carriage-motion in output from "!"Gustav Hållberg1-0/+17
This makes carriage return and similar be handled correctly, which is important as some git commands use those. Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-03-24mail: Add 'snumber' template parameter equivalent to stripped 'number'Catalin Marinas1-0/+3
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-22pick --revert wasn't using the correct authorCatalin Marinas1-3/+8
The author should be the one reverting the patch rather than the creator of the reverted commit. The patch also improves the revert message to contain the description of the reverted commit. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-09Allow interactive merging via StackTransaction.reorder_patches()Catalin Marinas3-4/+7
This way other commands like sink and pop can use the interactive mergetool. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-03-01mail: Use space rather than tab for long subject header foldingCatalin Marinas1-0/+7
The default Python implementation (at least 2.5 and earlier) fold long e-mail header lines by inserting "\n\t". This causes issues with some e-mail clients that remove both "\n\t". The RFC2822 shows that folding should be done with "\n ". The Python workaround is to use a Header object instead of a string when setting the message headers. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-26stgit.el: Do not use suppress-keymap for prefix keymapsGustav Hållberg1-2/+0
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
2010-02-15mail: Ask for the SMTP credentials before sending the messagesCatalin Marinas1-2/+20
The original implementation was asking for the SMTP password on every patch sent. This patch only asks the password once before sending or even editing the cover message and patches. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Cc: Pavel Roskin <proski@gnu.org> Cc: Alex Chiang <achiang@hp.com>
2010-02-10Fix _command_list() function for empty command setsCatalin Marinas1-1/+4
The alias commands are not real StGit commands and the corresponding set (kind) defined in stgit/commands/__init__.py is empty. This leads to a KeyError in the _command_list() function. The patch ignores empty sets. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Replace some git commands with stg aliases in test scriptsCatalin Marinas48-110/+110
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Add support for command aliasesCatalin Marinas4-3/+50
This patch introduces support StGit command aliases with a few defaults: stg add -> git add stg rm -> git rm stg mv -> git mv stg resolved -> git add Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Populate the cached config options with the defaultsCatalin Marinas1-14/+14
The patch pre-populates the cached config options with the default values. It also removes an unused option (stgit.extensions). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Pass the --in-reply-to and --no-thread options to git send-emailCatalin Marinas1-0/+4
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Rename the mail --refid and --noreply options to match GitCatalin Marinas1-10/+10
The new option names are --in-reply-to and --no-thread. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05Record a single transaction for conflicting push operationsCatalin Marinas3-22/+19
StGit commands resulting in a conflicting patch pushing record two transactions in the log (with one of them being inconsistent with HEAD != top). Undoing such operations requires two "stg undo" (possibly with --hard) commands which is unintuitive. This patch changes such operations to only record one log entry and "stg undo" reverts the stack to the state prior to the operation. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Cc: Gustav Hållberg <gustav@virtutech.com> Cc: Karl Wiberg <kha@treskal.com>
2010-02-05stg mail: don't parse To/Cc/Bcc in --git modeAlex Chiang1-9/+5
When using stg mail in --git mode, do not parse command-line To/Cc/Bcc addresses. Instead, we pass them directly to git send-email. This allows us to leverage git send-email's support for email aliases. Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05stg mail: add basic support for git send-emailAlex Chiang1-4/+46
This is the first step in turning stg mail into a wrapper for git send-email. It requires passing the --git option to stg mail for now. Only a few basic options are supported for now, namely To/Cc/Bcc. git send-email options used: --suppress-cc=self prevent further information prompts --quiet reduce git send-email output Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05stg mail: factor out __update_headerAlex Chiang1-23/+25
Factor __update_header out of __build_address_headers. Headers like Reply-To, Mail-Reply-To, and Mail-Followup-To are now handled in __build_extra_headers. We make this change because in the future, we do not want to call __build_address_headers if using git send-email but we will always want to call __build_extra_headers. Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05stg mail: make __send_message do moreAlex Chiang1-36/+29
Factor out the common code required to send either a cover mail or patch, and implement it in __send_message. WRY? DRY. Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05stg mail: reorder __build_[message|cover] parametersAlex Chiang1-5/+5
Reorder the argument lists for both __build_cover and __build_message. This change will aid readability of a subsequent refactoring patch. Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-05stg mail: Refactor __send_message and friendsAlex Chiang1-24/+19
Instead of passing all the various smtp* args to __send_message individually, let's just pass the options list instead. The main motivation is for future patches. The end goal is to thin out stg mail's implementation and make it a minimal wrapper around git send-email. By passing the options list to __send_message we prepare to pass options directly to git send-email. As a bonus, this change results in a cleaner internal API. Finally, it also pushes the smtp logic where it belongs, viz. into __send_message_smtp, instead of cluttering up the main body of mail.func(). Cc: Karl Wiberg <kha@treskal.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2010-02-03stgit.el: Add the stgit-execute command and bind it to "!"David Kågedal1-1/+57
Signed-off-by: David Kågedal <david@virtutech.com> Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-31improve "usage" strings to include optional "--"Gustav Hållberg34-42/+42
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-29stgit.el: Handle patch and branch names starting with hyphenGustav Hållberg1-12/+13
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-29stgit.el: Made a few wide lines more narrowGustav Hållberg1-2/+5
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-25stgit.el: Run "git update-index --refresh" before redrawing work tree statusGustav Hållberg1-0/+2
This prevents unchanged files from showing up as "Modified" in the work tree. Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-22stgit.el: Advise non-stgit git functions to update stgit buffersGustav Hållberg1-7/+46
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2010-01-22Tutorial: Add stgit.el sectionGustav Hållberg1-0/+203
Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22stgit.el: Prevent stgit-applied-patches from moving pointGustav Hållberg1-2/+4
This stops stgit-diff-range from moving point. Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22stgit.el: Annotate stgit-capture-output macro for edebugGustav Hållberg1-0/+2
Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22stgit.el: Add command for showing diff for a range of patchesKarl Wiberg1-0/+33
Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22stgit.el: Optionally allow duplicates when sorting patchesKarl Wiberg1-4/+6
Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22stgit.el: Break out diff whitespace arg handling to separate functionKarl Wiberg1-5/+6
Signed-off-by: Karl Wiberg <kha@treskal.com>
2010-01-22Merge gustav/proposedKarl Wiberg1-16/+44
stgit.el: Make "G" work before/after the tree stgit.el: Repair how patches with empty descriptions are shown
2009-12-17Merge branch 'stable'Catalin Marinas1-1/+1
2009-12-17Fix "stg applied" usage in contrib/stg-dispatchCatalin Marinas1-1/+1
This command was replaced by "stg series --applied" but the above shell script hasn't been changed. This is a fix for bug #557475. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-12-16stgit.el: Make "G" work before/after the treeGustav Hållberg1-14/+40
2009-12-06stgit.el: Repair how patches with empty descriptions are shownGustav Hållberg1-2/+4
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Do not emit trailing whitespaceGustav Hållberg1-3/+12
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Get default rebase branch from git-config in stg-rebaseGustav Hållberg1-2/+17
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Allow "B" to create new branchesGustav Hållberg1-13/+37
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Make stg undo/redo --hard ask for confirmation with dirty ↵Gustav Hållberg1-12/+18
index/worktree Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Do not recurse into unknown directories after "t u"Gustav Hållberg1-40/+85
Let RET on unexpanded directories expand the directory. This is similar to how git-status does it. Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Use "->" for defstruct field accessorsGustav Hållberg1-61/+63
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Disable undo information in stgit output capture buffersGustav Hållberg1-0/+1
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04new: Allow empty messages with --message and --fileGustav Hållberg1-2/+2
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
2009-12-04stgit.el: Make the patch name optionalDavid Kågedal1-4/+58
Introduce an "alternate" patch line format and make "t n" toggle between the two. Signed-off-by: David Kågedal <david@virtutech.com>
2009-12-04stgit.el: Use format-spec when formatting file informationDavid Kågedal1-25/+37
Signed-off-by: David Kågedal <david@virtutech.com>
2009-12-04stgit.el: Use format-spec when formatting patch linesDavid Kågedal1-20/+44
Signed-off-by: David Kågedal <david@virtutech.com>
2009-12-04stgit.el: Move defcustom definitions to the topDavid Kågedal1-120/+120
Signed-off-by: David Kågedal <david@virtutech.com>
2009-12-03Merge commit 'kha/safe'Catalin Marinas1-5/+9
2009-12-03Merge branch 'stable'Catalin Marinas1-10/+2
2009-12-03Update the tutorial for the conflict situationsCatalin Marinas1-10/+2
This is a fix for bug #14672. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-11-23undo: Add test that "stg undo --hard" leaves the stgit tree in a consistent ↵Gustav Hållberg1-5/+9
state The test currently fails. Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-10-28Merge branch 'stable'Catalin Marinas3-19/+21
2009-10-28Fix setup.py to generate the needed filesCatalin Marinas3-19/+21
StGit was relying on Makefile to generate some files but this breaks using setup.py directly for targets like rpm. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-28stgit.el: Position point at beginning of buffer before editing messagesGustav Hållberg1-3/+5
Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-10-28fold/import: Remove requirement on git 1.6.2Gustav Hållberg1-1/+1
Send "-p<N>" flag to "git apply" rather than "-p <N>". This removes dependency on git 1.6.2, commit: f26c494 parse-opt: migrate builtin-apply. Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-10-28push/pop: Allow "-n0" to do nothingGustav Hållberg4-37/+100
Also document what "-n<negative>" does. Added some push tests to t1203-pop.sh and renamed it t1208-push-and-pop.sh. Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-10-28stgit.el: Improve help text on stgit-gotoGustav Hållberg1-1/+3
Signed-off-by: Gustav Hållberg <gustav@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-10-24Slightly modify the "publish" command descriptionv0.15Catalin Marinas1-1/+1
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-20Pick --revert option (formerly --reverse)Catalin Marinas2-7/+16
This patch renames --reverse to --revert and sets the picked patch message similar to the "git revert" command. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-19The '--file' option for 'new' should show 'FILE' rather than 'MESSAGE'Catalin Marinas1-0/+1
The patch sets a metavar for this option's definition. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-18Update the RELEASENOTES file with latest changesv0.15-rc4Catalin Marinas1-3/+9
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-18Do not use stdout instead of stderrCatalin Marinas1-3/+2
The MessagePrinter constructor redirects stderr to stdout if the output is not a file. This makes it difficult for tools needing to filter the error output (like Documentation/Makefile building the COMMANDS variable). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-17Ignore the git-config exit codeCatalin Marinas1-1/+2
The stgit.config code dumps a stack trace if git-config returns an error (when, for example, there is no ~/.gitconfig file). Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-17Do not delete the builtin_version.py file after setupCatalin Marinas3-11/+3
If setup is run in a directory without .git, setup.py deletes the stgit/builtin_version.py file and subsequent commands no longer have a version. See bug #14480. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-10-05Never skip rebaseJakob Stoklund Olesen1-3/+0
This is important if we have a custom rebase command (like "git svn rebase"). Signed-off-by: Jakob Stoklund Olesen <stoklund@2pi.dk> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-30Fast-forward the published head when possibleCatalin Marinas1-0/+5
This is to avoid a merge commit when fast-forwarding is possible. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-30Delete the hidden patches as well when deleting a branchCatalin Marinas1-1/+2
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-30Allow 'stg diff ..<commit>'Catalin Marinas1-1/+1
If the first part of the range is missing, stgit was not assuming HEAD. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-30Allow importing of 'application/octet-stream' attachmentsCatalin Marinas1-1/+2
Some mail clients use this MIME type rather than text/plain. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-16Autosign imported patchesCatalin Marinas1-2/+5
If stgit.autosign configuration is set, allow the automatic signing of the imported patches, similar to the 'new' command. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-16Add the -p option to foldCatalin Marinas1-2/+6
This option was added to import, so it makes sense for fold to have it as well. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-16Do not create an empty patch if import failed without --rejectCatalin Marinas1-3/+8
If the import failed, do not leave an empty patch on the stack. If this is required, the --reject option should be passed. The patch also fixes a lowercase typo in the --reject option description. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-16Add the --reject option to foldCatalin Marinas1-4/+7
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-16Remove the 'fail_dump' argument to git.apply_patch()Catalin Marinas1-9/+2
Since we have a 'reject' argument, there is no need for the failed diff to be dumped. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-13Generate binary diffs by defaultv0.15-rc3Catalin Marinas1-2/+5
This patch modifies the Repository.diff_tree() function to generate binary diffs by default. This way commands like 'export' would generate patches containing the full information. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2009-09-13Preserve the given author date during importCatalin Marinas1-0/+1
The import has two stages - one for creating the initial empty commit with the patch description followed by a refresh once the diff was successfully applied. The second refresh resets the author date to the current one. This patch passes the given author date to the refresh_patch function. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2009-09-08Add import -p optionCatalin Marinas5-6/+61
This patch renames some of the existing import options and adds the -p (--strip) option which allows stripping the leading slashes of the diff paths. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2009-09-08Merge commit 'kha/safe'Catalin Marinas1-1/+1
2009-09-03Escape patch name when creating regexpDavid Kågedal1-1/+1
Signed-off-by: David Kågedal <david@virtutech.com> Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-09-02Import git show output easilyCatalin Marinas1-2/+7
This patch modifies the import command to check for standard 'git show' output and parse it accordingly. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
2009-09-02Merge commit 'kha/safe'Catalin Marinas3-5/+18
2009-09-02Add stg-build, stg-dbg and RELEASENOTES to the MANIFEST.in fileCatalin Marinas1-0/+3
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2009-08-24squash: Make commit message editing more convenientKarl Wiberg2-4/+17
Very often, the commit message you want when squashing is the message of the first patch. So instead of simply concatenating the messages of all the patches, put a comment delimiter after the first one, and ignore everything after the delimiter when reading the message back in. If the user wants to use any part of the commented-out messages, she can move text around however she wants, including deleting the comment delimiter. Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-08-24When reading a config value, pick the last value, not the firstKarl Wiberg1-1/+1
When reading the config values, we save all values for a given key in a list, in the order we see them. Then, when asked for one value, we used to return the _first_ value in the list. But the correct thing to do in order to allow local configs (like the repository's .git/config) to override global configs (like ~/.gitconfig) is to return the _last_ value. Signed-off-by: Karl Wiberg <kha@treskal.com>
2009-08-21Add the next/prev commands to the RELEASENOTES filev0.15-rc2Catalin Marinas1-0/+3
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>