{ "info": { "author": "Dan Aloni", "author_email": "alonid@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "About\n-----\n*git-search-replace* is a small utility on top of plain `git` for performing project-wide search-and-replace only on git-controlled files. It applies its searches to filenames as well as their content. The underlying syntax for the search regex is Python's.\n\nIt is designed to be a bit more instructive to the developer, compared to hackish `bash` scripts around `sed`.\n\nKey features are:\n\n* By default, only act as grep to show what is going to change.\n* Dry run mode '--diff' shows a unidiff of the changes that the search-and-replace would do, so that the developer can review for correctness. No working directory files are modified.\n* Fix mode '--fix' performs the actual changes and associated 'git mv'.\n\nSyntax\n------\n Usage: gsr [options] (FROM-SEPARATOR-TO...)\n\n Options:\n -h, --help show this help message and exit\n -s STRING, --separator=STRING\n The separator string which separates FROM regex and TO expression\n -f, --fix Perform changes in-place\n -d, --diff Use 'diff' util to show differences\n\nThe expressions are tuples in the form of FROM-SEPARATOR-TO, with SEPARATOR defaults to '///'.\n\nExamples\n--------\n\nShell escaping needs to be taken into consideration. The examples below should work with the major UNIX shells.\n\n gsr old_name///new_name --diff\n\nThis shows a diff that represents the replacement of 'old_name' with 'new_name'.\n\n gsr \\\\bold_name\\\\b///new_name --fix\n\nThis uses Python regex expression \\b for matching at word boundaries for whole identifiers. This invocation will perform changes in-place because of '--fix'.\n\n gsr 'things with space///with other stuff' --diff\n\nNote that shells properly de-escape the commas from the expression above.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/da-x/git-search-replace", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "git-search-replace", "package_url": "https://pypi.org/project/git-search-replace/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/git-search-replace/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/da-x/git-search-replace" }, "release_url": "https://pypi.org/project/git-search-replace/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "a utility on top of git for project-wide search-and-replace that includes filenames too", "version": "1.0.2" }, "last_serial": 1459661, "releases": { "1.0.0": [], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5be1b30d72b91aee62b70429ff283568", "sha256": "f559c51ec9455fc5e9a2ad2fc0ac60cb04ed27a1871c58d81ed1d5b4344f2333" }, "downloads": -1, "filename": "git-search-replace-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5be1b30d72b91aee62b70429ff283568", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3394, "upload_time": "2015-03-01T21:13:33", "url": "https://files.pythonhosted.org/packages/e3/e8/288c4b24c71f580c94bce09ab93df5f7b42429eb981e1fee6092ffb8a3fc/git-search-replace-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "586673242715d2aec43eea199fd7e2ec", "sha256": "60496cb68edc9f551796ab6cdd372d8c422b404a423bcd9f1139600bf60ed04c" }, "downloads": -1, "filename": "git-search-replace-1.0.2.tar.gz", "has_sig": false, "md5_digest": "586673242715d2aec43eea199fd7e2ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2015-03-13T07:16:51", "url": "https://files.pythonhosted.org/packages/90/7d/39e56594d583cc7dd4021f686797519730fa77f2fe40531dbca1c0354ee6/git-search-replace-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "586673242715d2aec43eea199fd7e2ec", "sha256": "60496cb68edc9f551796ab6cdd372d8c422b404a423bcd9f1139600bf60ed04c" }, "downloads": -1, "filename": "git-search-replace-1.0.2.tar.gz", "has_sig": false, "md5_digest": "586673242715d2aec43eea199fd7e2ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2015-03-13T07:16:51", "url": "https://files.pythonhosted.org/packages/90/7d/39e56594d583cc7dd4021f686797519730fa77f2fe40531dbca1c0354ee6/git-search-replace-1.0.2.tar.gz" } ] }